mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: TODO followups (#18936)
* Remove old bookmark column ignores to follow upb22450c7a8* Change some group site setting checks to use the _map helper * Remove old secure_media helper stub for chat * Change attr_accessor to attr_reader for preloaded_custom_fields to follow up70af45055a
This commit is contained in:
@@ -15,8 +15,7 @@ module TagGuardian
|
||||
return false if @user.blank?
|
||||
return true if @user == Discourse.system_user
|
||||
|
||||
# TODO (martin) Change to pm_tags_allowed_for_groups_map
|
||||
group_ids = SiteSetting.pm_tags_allowed_for_groups.to_s.split("|").map(&:to_i)
|
||||
group_ids = SiteSetting.pm_tags_allowed_for_groups_map
|
||||
group_ids.include?(Group::AUTO_GROUPS[:everyone]) || @user.group_users.exists?(group_id: group_ids)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user