mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
Fixing Allowed Server on Config Page
This commit is contained in:
parent
74912a8648
commit
eee528f329
@ -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
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user