From f472b377d2701c9a4f479e8de2a905434d23425e Mon Sep 17 00:00:00 2001 From: Andrew Date: Sun, 22 Aug 2021 03:27:12 +0000 Subject: [PATCH] Revert "Fixed bug where servers would not get added to roles on creation" This reverts commit ecb2cfbe013d18afcaf3676a80a61dfe75aca7d7 --- app/classes/web/server_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/classes/web/server_handler.py b/app/classes/web/server_handler.py index e3e83da6..bad6df71 100644 --- a/app/classes/web/server_handler.py +++ b/app/classes/web/server_handler.py @@ -197,6 +197,7 @@ class ServerHandler(BaseHandler): # todo: add server type check here and call the correct server add functions if not a jar role_ids = db_helper.get_user_roles_id(exec_user_id) new_server_id = self.controller.create_jar_server(server_type, server_version, server_name, min_mem, max_mem, port) + db_helper.add_user_server(new_server_id, exec_user_id, "11111111") roles = db_helper.get_user_roles_id(exec_user_id) for role in roles: db_helper.add_role_server(new_server_id, role, "11111111")