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…
Reference in New Issue