forked from ScoDoc/DocScoDoc
Fix: display role permissions
This commit is contained in:
parent
fbe480902b
commit
b930406be9
@ -70,7 +70,8 @@ class Permission(object):
|
||||
setattr(Permission, symbol, perm)
|
||||
Permission.description[symbol] = description
|
||||
Permission.permission_by_name[symbol] = perm
|
||||
Permission.NBITS = len(_SCO_PERMISSIONS)
|
||||
max_perm = max(p[0] for p in _SCO_PERMISSIONS)
|
||||
Permission.NBITS = max_perm.bit_length()
|
||||
|
||||
@staticmethod
|
||||
def get_by_name(permission_name: str) -> int:
|
||||
|
Loading…
Reference in New Issue
Block a user