admin: fixed sort of special privs

This commit is contained in:
Darks 2023-06-06 22:44:12 +02:00
parent 3f8f8ab225
commit 798f5d203e
Signed by untrusted user: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 1 additions and 1 deletions

View File

@ -221,7 +221,7 @@ class Member(User):
def special_privileges(self):
"""List member's special privileges."""
return sorted(self.special_privs)
return sorted(self.special_privs, key=lambda x: x.priv)
def can_access_forum(self, forum):
"""Whether this member can read the forum's contents."""