diff --git a/addons/cetmix_tower_server/security/cx_tower_variable_value_security.xml b/addons/cetmix_tower_server/security/cx_tower_variable_value_security.xml new file mode 100644 index 0000000..6b28b2b --- /dev/null +++ b/addons/cetmix_tower_server/security/cx_tower_variable_value_security.xml @@ -0,0 +1,104 @@ + + + + + + Variable Value: User Read Access + + [ + ('access_level', '=', '1'), + '|', '|', '|', '|', '|', + ('is_global', '=', True), + ('server_id.user_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.user_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.server_ids.user_ids', 'in', [user.id]), + ('jet_id.user_ids', 'in', [user.id]), + ('jet_template_id.user_ids', 'in', [user.id]) + ] + + + + + + + + + + Variable Value: Manager Read Access + + [ + ('access_level', '<=', '2'), + '|', '|', '|', '|', '|', '|', '|', '|', '|', '|', '|', '|', + ('is_global', '=', True), + ('server_id.user_ids', 'in', [user.id]), + ('server_id.manager_ids', 'in', [user.id]), + ('server_template_id.user_ids', 'in', [user.id]), + ('server_template_id.manager_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.user_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.manager_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.server_ids.user_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.server_ids.manager_ids', 'in', [user.id]), + ('jet_id.user_ids', 'in', [user.id]), + ('jet_id.manager_ids', 'in', [user.id]), + ('jet_template_id.user_ids', 'in', [user.id]), + ('jet_template_id.manager_ids', 'in', [user.id]) + ] + + + + + + + + + + Variable Value: Manager Write/Create Access + + [ + ('access_level', '<=', '2'), + '|', '|', '|', '|', '|', + ('server_id.manager_ids', 'in', [user.id]), + ('server_template_id.manager_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.manager_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.server_ids.manager_ids', 'in', [user.id]), + ('jet_id.manager_ids', 'in', [user.id]), + ('jet_template_id.manager_ids', 'in', [user.id]) + ] + + + + + + + + + + Variable Value: Manager Unlink Access + + [ + ('access_level', '<=', '2'), + ('create_uid', '=', user.id), + '|', '|', '|', '|', '|', + ('server_id.manager_ids', 'in', [user.id]), + ('server_template_id.manager_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.manager_ids', 'in', [user.id]), + ('plan_line_action_id.plan_id.server_ids.manager_ids', 'in', [user.id]), + ('jet_id.manager_ids', 'in', [user.id]), + ('jet_template_id.manager_ids', 'in', [user.id]) + ] + + + + + + + + + + Variable Value: Root Full Access + + [(1, '=', 1)] + + + +