mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FEATURE: Allow staff to flag chat messages (#18919)
This commit is contained in:

committed by
GitHub

parent
2eee6fb644
commit
c18453e38c
@ -95,6 +95,7 @@ module Chat::GuardianExtensions
|
||||
|
||||
def can_flag_chat_messages?
|
||||
return false if @user.silenced?
|
||||
return true if @user.staff?
|
||||
|
||||
@user.in_any_groups?(SiteSetting.chat_message_flag_allowed_groups_map)
|
||||
end
|
||||
|
Reference in New Issue
Block a user