From 8574547d141897a08b80cd2c47f0ff928ce72e51 Mon Sep 17 00:00:00 2001 From: Silversthorn Date: Wed, 29 Sep 2021 22:08:43 +0200 Subject: [PATCH] Correction Role Edit --- app/classes/models/server_permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/classes/models/server_permissions.py b/app/classes/models/server_permissions.py index 5d901377..43f50b96 100644 --- a/app/classes/models/server_permissions.py +++ b/app/classes/models/server_permissions.py @@ -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