mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 01:35:28 +01:00
Fix support logs validation
This commit is contained in:
parent
8ff2d8437d
commit
98b364cd3e
@ -89,7 +89,14 @@ class Controller:
|
||||
server_path = os.path.join(full_temp, "server")
|
||||
os.mkdir(server_path)
|
||||
if exec_user["superuser"]:
|
||||
auth_servers = self.servers.list_defined_servers()
|
||||
defined_servers = self.servers.list_defined_servers()
|
||||
user_servers = []
|
||||
for server in defined_servers:
|
||||
if server not in user_servers:
|
||||
user_servers.append(
|
||||
DatabaseShortcuts.get_data_obj(server.server_object)
|
||||
)
|
||||
auth_servers = user_servers
|
||||
else:
|
||||
defined_servers = self.servers.get_authorized_servers(
|
||||
int(exec_user["user_id"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user