diff --git a/addons/cetmix_tower_server/security/cx_tower_file_template_security.xml b/addons/cetmix_tower_server/security/cx_tower_file_template_security.xml new file mode 100644 index 0000000..eee1c5e --- /dev/null +++ b/addons/cetmix_tower_server/security/cx_tower_file_template_security.xml @@ -0,0 +1,52 @@ + + + + + + + File: Manager read (user_ids or manager_ids) + + + + ["|", ("user_ids", "in", [user.id]), ("manager_ids", "in", [user.id])] + + + + + + + + + + File: Manager write & create (manager_ids) + + + [('manager_ids', 'in', [user.id])] + + + + + + + + + File: Manager unlink (manager_ids & creator) + + + + [("manager_ids", "in", [user.id]), ("create_uid", "=", user.id)] + + + + + + + + + + File: Root unrestricted access + + + [(1, '=', 1)] + +