add permission string filter
This commit is contained in:
@ -7,6 +7,17 @@ class PermissionLevel(Enum):
|
||||
SYSTEM = 3
|
||||
ADMIN = 4
|
||||
|
||||
PermissionLevelString = {
|
||||
PermissionLevel.GUEST: 'Guest',
|
||||
PermissionLevel.USER: 'User',
|
||||
PermissionLevel.MODERATOR: 'Moderator',
|
||||
PermissionLevel.SYSTEM: 'System',
|
||||
PermissionLevel.ADMIN: 'Administrator',
|
||||
}
|
||||
|
||||
def permission_level_string(perm):
|
||||
return PermissionLevelString[PermissionLevel(int(perm))]
|
||||
|
||||
class InfoboxKind(IntEnum):
|
||||
INFO = 0
|
||||
LOCK = 1
|
||||
|
Reference in New Issue
Block a user