diff --git a/lib/guardian/group_guardian.rb b/lib/guardian/group_guardian.rb index fd18ff797a6..492924c92e5 100644 --- a/lib/guardian/group_guardian.rb +++ b/lib/guardian/group_guardian.rb @@ -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