Fixing Allowed Server on Config Page

This commit is contained in:
Silversthorn 2021-10-09 11:30:21 +02:00
parent 74912a8648
commit eee528f329
2 changed files with 9 additions and 10 deletions

View File

@ -232,7 +232,7 @@ class helper_users:
user_query = User_Roles.select().where(User_Roles.user_id == user_id) user_query = User_Roles.select().where(User_Roles.user_id == user_id)
query = Roles.select().where(Roles.role_id == -1) query = Roles.select().where(Roles.role_id == -1)
for u in user_query: for u in user_query:
query = Roles.select().where(Roles.role_id == u.role_id) query = query + Roles.select().where(Roles.role_id == u.role_id)
return query return query
@staticmethod @staticmethod

View File

@ -303,7 +303,6 @@ class PanelHandler(BaseHandler):
users_list = [] users_list = []
role_users = {} role_users = {}
roles = self.controller.roles.get_all_roles() roles = self.controller.roles.get_all_roles()
role_servers = []
user_roles = {} user_roles = {}
for user in self.controller.users.get_all_users(): for user in self.controller.users.get_all_users():
user_roles_list = self.controller.users.get_user_roles_names(user.user_id) user_roles_list = self.controller.users.get_user_roles_names(user.user_id)