TWEAK: Don't include moderators on "About" if they are admins.

This commit is contained in:
Robin Ward 2014-08-20 12:42:33 -04:00
parent 96eecf18ef
commit c316894167
1 changed files with 1 additions and 1 deletions

View File

@ -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