diff --git a/addons/cetmix_tower_server/security/cx_tower_command_log_security.xml b/addons/cetmix_tower_server/security/cx_tower_command_log_security.xml new file mode 100644 index 0000000..6deb00a --- /dev/null +++ b/addons/cetmix_tower_server/security/cx_tower_command_log_security.xml @@ -0,0 +1,34 @@ + + + + Tower command log: user access rule + + + [ + ("access_level", "=", "1"), + ("create_uid", "=", user.id), + ("server_id.user_ids", "in", [user.id]) + ] + + + + Tower command log: manager access rule + + + [ + "&", + ("access_level", "<=", "2"), + "|", + ("server_id.user_ids", "in", [user.id]), + ("server_id.manager_ids", "in", [user.id]) + ] + + + + + Tower command log: root access rule + + [(1, "=", 1)] + + +