diff --git a/addons/cetmix_tower_server/security/cx_tower_jet_action_security.xml b/addons/cetmix_tower_server/security/cx_tower_jet_action_security.xml new file mode 100644 index 0000000..8baa991 --- /dev/null +++ b/addons/cetmix_tower_server/security/cx_tower_jet_action_security.xml @@ -0,0 +1,75 @@ + + + + + + + Jet Action: User Read Access + + + + [ + ("access_level", "=", "1"), + "|", + ("jet_template_id.access_level", "=", "1"), + "|", + ("jet_template_id.user_ids", "in", [user.id]), + ("jet_template_id.jet_ids.user_ids", "in", [user.id]) + ] + + + + + + + + + + + Jet Action: Manager Read Access + + + + [ + ("access_level", "<=", "2"), + "|", + ("jet_template_id.access_level", "<=", "2"), + "|", + ("jet_template_id.user_ids", "in", [user.id]), + ("jet_template_id.manager_ids", "in", [user.id]) + ] + + + + + + + + + + + Jet Action: Manager Write/Create/Unlink + + + + [ + ("access_level", "<=", "2"), + ("jet_template_id.manager_ids", "in", [user.id]) + ] + + + + + + + + + + + Jet Action: Root Full Access + + + [(1, '=', 1)] + + +