mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 00:37:29 +08:00

Someone who cannot chat is also not able to join chat channels, so we may not check all the time user.can_chat? && user.can_join_chat_channel? and just call user.can_join_chat_channel? instead.