mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fixed bug where all roles showed the sum of servers associated with all roles
This commit is contained in:
parent
9ec10db762
commit
b1215ff20a
@ -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