From 05b6f98a823d89604f1be890d000fbf34d880470 Mon Sep 17 00:00:00 2001 From: git_admin Date: Mon, 27 Apr 2026 08:16:21 +0000 Subject: [PATCH] Tower: upload cetmix_tower_server 16.0.3.0.1 (via marketplace) --- .../security/cx_tower_command_security.xml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 addons/cetmix_tower_server/security/cx_tower_command_security.xml diff --git a/addons/cetmix_tower_server/security/cx_tower_command_security.xml b/addons/cetmix_tower_server/security/cx_tower_command_security.xml new file mode 100644 index 0000000..2903c82 --- /dev/null +++ b/addons/cetmix_tower_server/security/cx_tower_command_security.xml @@ -0,0 +1,84 @@ + + + + + Command: User read + + + + ["&", + ("access_level", "=", "1"), + "|", + ("user_ids", "in", [user.id]), + ("server_ids.user_ids", "in", [user.id]) + ] + + + + + + + + + + Command: Manager read + + + + ["&", + ("access_level", "<=", "2"), + "|", + "|", ("user_ids", "in", [user.id]), ("manager_ids", "in", [user.id]), + "|", + ("server_ids", "=", False), + "|", + ("server_ids.user_ids", "in", [user.id]), + ("server_ids.manager_ids", "in", [user.id]) + ] + + + + + + + + + + Command: Manager write & create + + + + [("access_level", "<=", "2"), ("manager_ids", "in", [user.id])] + + + + + + + + + + Command: Manager unlink + + + + [ + ("access_level", "<=", "2"), + ("create_uid", "=", user.id), + ("manager_ids", "in", [user.id]) + ] + + + + + + + + + + Command: Root unrestricted access + + + [(1, '=', 1)] + +