mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2025-01-27 04:55:13 +00:00
Admins should have same userlevel_str as mods.
This commit is contained in:
parent
3efda25f88
commit
d38f30a7b7
4
nyaa/models.py
Normal file → Executable file
4
nyaa/models.py
Normal file → Executable file
|
@ -411,10 +411,8 @@ class User(db.Model):
|
|||
return 'User'
|
||||
elif self.level == UserLevelType.TRUSTED:
|
||||
return 'Trusted'
|
||||
elif self.level == UserLevelType.MODERATOR:
|
||||
elif self.level >= UserLevelType.MODERATOR:
|
||||
return 'Moderator'
|
||||
elif self.level == UserLevelType.SUPERADMIN:
|
||||
return 'Administrator'
|
||||
|
||||
@property
|
||||
def userlevel_color(self):
|
||||
|
|
Loading…
Reference in a new issue