diff options
Diffstat (limited to 'gitano-admin/rules/destroyrepo.lace')
-rw-r--r-- | gitano-admin/rules/destroyrepo.lace | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitano-admin/rules/destroyrepo.lace b/gitano-admin/rules/destroyrepo.lace index 0b83212..6e6b446 100644 --- a/gitano-admin/rules/destroyrepo.lace +++ b/gitano-admin/rules/destroyrepo.lace @@ -14,4 +14,7 @@ allow "You may destroy your own repositories" is_owner repo_is_personal # Project admins may destroy repos inside their projects allow "Project admins may destroy project repos" repo_is_local_project project_admin +# Allow lorry to destroy repositories anywhere but the local project root +allow "Lorry may destroy lorryable repos" is_lorry lorryable_repo + deny "You may not destroy repositories you do not own" |