diff options
author | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-07 17:02:09 +0100 |
---|---|---|
committer | Daniel Silverstone <daniel.silverstone@codethink.co.uk> | 2012-09-07 17:02:09 +0100 |
commit | 57f53edd217b06031cfa003c620b553292ebd5e7 (patch) | |
tree | d1ed82e5aff8e771b37071911ca7ad32b24ba0d0 /gitano-admin/rules/destroyrepo.lace | |
parent | fb652434121c382fc622845ec714c2a14f2fde58 (diff) | |
download | trove-setup-57f53edd217b06031cfa003c620b553292ebd5e7.tar.gz |
Update ruleset
Diffstat (limited to 'gitano-admin/rules/destroyrepo.lace')
-rw-r--r-- | gitano-admin/rules/destroyrepo.lace | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/gitano-admin/rules/destroyrepo.lace b/gitano-admin/rules/destroyrepo.lace index fb2d494..0b83212 100644 --- a/gitano-admin/rules/destroyrepo.lace +++ b/gitano-admin/rules/destroyrepo.lace @@ -1,9 +1,17 @@ +# _____ +# |_ _| __ _____ _____ +# | || '__/ _ \ \ / / _ \ +# | || | | (_) \ V / __/ +# |_||_| \___/ \_/ \___| +# +# Copyright 2012 Codethink Limited +# # Rules related to the destroying of repositories -# For now, owners may destroy repositories -allow "You may destroy your own repositories" is_owner +# Owners may destroy personal repositories +allow "You may destroy your own repositories" is_owner repo_is_personal -# Admins may destroy repos inside their projects -allow "Project admins may destroy project repos" repo_has_project_code ct_admins +# Project admins may destroy repos inside their projects +allow "Project admins may destroy project repos" repo_is_local_project project_admin deny "You may not destroy repositories you do not own" |