Hide special users from about pages.

This commit is contained in:
Guo Xiang Tan 2017-03-10 15:33:31 +08:00
parent a43ec88f46
commit eb6ef0311e
1 changed files with 2 additions and 4 deletions

View File

@ -35,14 +35,12 @@ class About
def moderators def moderators
@moderators ||= User.where(moderator: true, admin: false) @moderators ||= User.where(moderator: true, admin: false)
.where.not(id: Discourse::SYSTEM_USER_ID) .where("id > 0")
.order(:username_lower) .order(:username_lower)
end end
def admins def admins
@admins ||= User.where(admin: true) @admins ||= User.where(admin: true).where("id > 0").order(:username_lower)
.where.not(id: Discourse::SYSTEM_USER_ID)
.order(:username_lower)
end end
def stats def stats