mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
Remove use of deprecated site setting.
This commit is contained in:
parent
5dabcc9081
commit
932a1a1187
@ -13,7 +13,7 @@ module GroupGuardian
|
||||
end
|
||||
|
||||
def can_see_group_messages?(group)
|
||||
SiteSetting.enable_private_messages? && (
|
||||
SiteSetting.enable_personal_messages? && (
|
||||
is_admin? || group.users.include?(user)
|
||||
)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user