1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 09:19:59 +00:00
This commit is contained in:
ReimuHakurei 2017-05-24 06:19:22 +00:00
commit 917b9b7170

4
nyaa/models.py Normal file → Executable file
View 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):