mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: unable to create new categories
Previous attempt at 70adb940 missed the critical "everyone" group from
staff, leading to a case where staff was no longer able to create categories
This commit is contained in:
@@ -72,9 +72,7 @@ class Site
|
||||
end
|
||||
|
||||
def groups
|
||||
groups = Group.visible_groups(@guardian.user)
|
||||
groups = groups.where("automatic IS FALSE OR groups.id = #{Group::AUTO_GROUPS[:moderators]}") if !@guardian.is_staff?
|
||||
groups
|
||||
Group.visible_groups(@guardian.user, "name ASC", include_everyone: true)
|
||||
end
|
||||
|
||||
def suppressed_from_latest_category_ids
|
||||
|
||||
Reference in New Issue
Block a user