Merge branch 'Role-Edit-Correction' into 'dev'

Role Edition Fix

See merge request crafty-controller/crafty-commander!78
This commit is contained in:
Silversthorn 2021-09-29 20:10:05 +00:00
commit e976593d83

View File

@ -125,9 +125,9 @@ class Permissions_Servers:
@staticmethod
def get_role_permissions_list(role_id):
permissions_mask = '00000000'
role_server = Role_Servers.get_or_none(role_id)# select().where(Role_Servers.role_id == role_id).execute()
role_server = Role_Servers.get_or_none(role_id)
if role_server is not None:
permissions_mask = role_server[0].permissions
permissions_mask = role_server.permissions
permissions_list = server_permissions.get_permissions(permissions_mask)
return permissions_list