diff --git a/addons/cetmix_tower_server/security/cx_tower_shortcut_security.xml b/addons/cetmix_tower_server/security/cx_tower_shortcut_security.xml new file mode 100644 index 0000000..935a747 --- /dev/null +++ b/addons/cetmix_tower_server/security/cx_tower_shortcut_security.xml @@ -0,0 +1,42 @@ + + + + + + Tower Shortcut: user visibility rule + + + [ + ('server_ids.user_ids', 'in', [user.id]), + ('access_level', '=', '1') + ] + + + + + + Tower shortcut: manager visibility rule + + + [ + ('access_level', '<=', '2'), + '|', '|', '|', + ('server_ids.user_ids', 'in', [user.id]), + ('server_ids.manager_ids', 'in', [user.id]), + ('server_template_ids.user_ids', 'in', [user.id]), + ('server_template_ids.manager_ids', 'in', [user.id]), + ] + + + + + Tower shortcut: root visibility rule + + [(1, '=', 1)] + + +