mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 06:46:39 +08:00
TWEAK: Don't include moderators on "About" if they are admins.
This commit is contained in:
parent
96eecf18ef
commit
c316894167
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user