diff --git a/addons/cetmix_tower_git/security/cx_tower_git_remote_security.xml b/addons/cetmix_tower_git/security/cx_tower_git_remote_security.xml new file mode 100644 index 0000000..bd4a48d --- /dev/null +++ b/addons/cetmix_tower_git/security/cx_tower_git_remote_security.xml @@ -0,0 +1,73 @@ + + + + + + Git Remote: Manager Read Access + + ['|', ('git_project_id.user_ids', 'in', [user.id]), ('git_project_id.manager_ids', 'in', [user.id])] + + + + + + + + + + Git Remote: Manager Read Access via Server + + ['|', + ('git_project_id.server_ids.user_ids', 'in', [user.id]), + ('git_project_id.server_ids.manager_ids', 'in', [user.id])] + + + + + + + + + + Git Remote: Manager Write/Create Access + + [('git_project_id.manager_ids', 'in', [user.id])] + + + + + + + + + + Git Remote: Manager Delete Access + + [('git_project_id.manager_ids', 'in', [user.id]), ('create_uid', '=', user.id)] + + + + + + + + + + Git Remote: Root Full Access + + [(1, '=', 1)] + + + + + + + + +