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. |
||
|---|---|---|
| .. | ||
| admin | ||
| api | ||
| api_controller.rb | ||
| chat_base_controller.rb | ||
| chat_channels_controller.rb | ||
| chat_controller.rb | ||
| direct_messages_controller.rb | ||
| emojis_controller.rb | ||
| incoming_chat_webhooks_controller.rb | ||