mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00: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")
|
server_path = os.path.join(full_temp, "server")
|
||||||
os.mkdir(server_path)
|
os.mkdir(server_path)
|
||||||
if exec_user["superuser"]:
|
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:
|
else:
|
||||||
defined_servers = self.servers.get_authorized_servers(
|
defined_servers = self.servers.get_authorized_servers(
|
||||||
int(exec_user["user_id"])
|
int(exec_user["user_id"])
|
||||||
|
Loading…
Reference in New Issue
Block a user