mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 11:28:18 +00:00
Instead of passing `user` to `guardian.can_chat?`, we can just use the inner `@user` that is part of the guardian instance already to determine whether that user can chat, since this is how it works for all other usages of guardian even within chat.