mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'pretzel-unstable' into 'pretzel'
Fixed bug in roles on server listing See merge request crafty-controller/crafty-commander!38
This commit is contained in:
commit
92632b5cff
@ -272,6 +272,7 @@ class PanelHandler(BaseHandler):
|
||||
data = {user.user_id: user_roles_list}
|
||||
user_roles.update(data)
|
||||
for role in roles:
|
||||
role_servers = []
|
||||
role = db_helper.get_role(role.role_id)
|
||||
for serv_id in role['servers']:
|
||||
role_servers.append(db_helper.get_server_data_by_id(serv_id)['server_name'])
|
||||
|
Loading…
Reference in New Issue
Block a user