Hide special users from about pages.
This commit is contained in:
parent
a43ec88f46
commit
eb6ef0311e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue