FEATURE: Allow staff to flag chat messages (#18919)

This commit is contained in:
Rafael dos Santos Silva
2022-11-22 12:14:15 -03:00
committed by GitHub
parent 2eee6fb644
commit c18453e38c
2 changed files with 18 additions and 0 deletions

View File

@ -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