diff --git a/app/models/group.rb b/app/models/group.rb index 498733cc1e4..2a852237f43 100644 --- a/app/models/group.rb +++ b/app/models/group.rb @@ -42,7 +42,7 @@ class Group < ActiveRecord::Base .where('topics.archetype <> ?', Archetype.private_message) .where(post_type: Post.types[:regular]) - unless guardian.is_staff? + unless guardian.is_admin? allowed_ids = guardian.allowed_category_ids if allowed_ids.length > 0 result = result.where('topics.category_id IS NULL or topics.category_id IN (?)', allowed_ids)