Hide special users from about pages.
This commit is contained in:
parent
a43ec88f46
commit
eb6ef0311e
|
@ -35,14 +35,12 @@ class About
|
|||
|
||||
def moderators
|
||||
@moderators ||= User.where(moderator: true, admin: false)
|
||||
.where.not(id: Discourse::SYSTEM_USER_ID)
|
||||
.where("id > 0")
|
||||
.order(:username_lower)
|
||||
end
|
||||
|
||||
def admins
|
||||
@admins ||= User.where(admin: true)
|
||||
.where.not(id: Discourse::SYSTEM_USER_ID)
|
||||
.order(:username_lower)
|
||||
@admins ||= User.where(admin: true).where("id > 0").order(:username_lower)
|
||||
end
|
||||
|
||||
def stats
|
||||
|
|
Loading…
Reference in New Issue