mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix bug where server wizard would not show
This commit is contained in:
parent
680cb1885e
commit
85cb28b9ad
@ -36,10 +36,10 @@ class ServerHandler(BaseHandler):
|
||||
|
||||
user_role = []
|
||||
if user['superuser'] == 1:
|
||||
defined_servers = controller.list_defined_servers()
|
||||
defined_servers = self.controller.list_defined_servers()
|
||||
user_role = "Super User"
|
||||
else:
|
||||
defined_servers = controller.list_authorized_servers(userId)
|
||||
defined_servers = self.controller.list_authorized_servers(userId)
|
||||
for r in user['roles']:
|
||||
role = db_helper.get_role(r)
|
||||
user_role.append(role['role_name'])
|
||||
|
Loading…
Reference in New Issue
Block a user