Fix bug where server wizard would not show

This commit is contained in:
luukas 2021-03-22 10:08:58 +02:00
parent 680cb1885e
commit 85cb28b9ad

View File

@ -36,10 +36,10 @@ class ServerHandler(BaseHandler):
user_role = [] user_role = []
if user['superuser'] == 1: if user['superuser'] == 1:
defined_servers = controller.list_defined_servers() defined_servers = self.controller.list_defined_servers()
user_role = "Super User" user_role = "Super User"
else: else:
defined_servers = controller.list_authorized_servers(userId) defined_servers = self.controller.list_authorized_servers(userId)
for r in user['roles']: for r in user['roles']:
role = db_helper.get_role(r) role = db_helper.get_role(r)
user_role.append(role['role_name']) user_role.append(role['role_name'])