mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 20:10:00 +00:00
Merge branch 'master' of https://github.com/nyaadevs/nyaa
This commit is contained in:
commit
917b9b7170
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'
|
return 'User'
|
||||||
elif self.level == UserLevelType.TRUSTED:
|
elif self.level == UserLevelType.TRUSTED:
|
||||||
return 'Trusted'
|
return 'Trusted'
|
||||||
elif self.level == UserLevelType.MODERATOR:
|
elif self.level >= UserLevelType.MODERATOR:
|
||||||
return 'Moderator'
|
return 'Moderator'
|
||||||
elif self.level == UserLevelType.SUPERADMIN:
|
|
||||||
return 'Administrator'
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def userlevel_color(self):
|
def userlevel_color(self):
|
||||||
|
|
Loading…
Reference in a new issue