mirror of
https://github.com/sb745/NyaaV3.git
synced 2025-03-12 22:06:55 +02:00
Merge branch 'master' of https://github.com/nyaadevs/nyaa
This commit is contained in:
commit
917b9b7170
1 changed files with 1 additions and 3 deletions
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…
Add table
Reference in a new issue