mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
TWEAK: Don't include moderators on "About" if they are admins.
This commit is contained in:
@@ -21,7 +21,7 @@ class About
|
||||
end
|
||||
|
||||
def moderators
|
||||
@moderators ||= User.where(moderator: true)
|
||||
@moderators ||= User.where(moderator: true, admin: false)
|
||||
.where.not(id: Discourse::SYSTEM_USER_ID)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user