mirror of
https://github.com/discourse/discourse.git
synced 2025-03-04 05:16:24 +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.