Remove use of deprecated site setting.

This commit is contained in:
Guo Xiang Tan 2018-02-12 14:26:22 +08:00
parent 5dabcc9081
commit 932a1a1187

View File

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