summaryrefslogtreecommitdiff
path: root/gitano-admin/rules/destroyrepo.lace
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-07 14:29:43 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-07 14:29:43 +0100
commitfb652434121c382fc622845ec714c2a14f2fde58 (patch)
tree5454fa43967ebb883173057c5f45fb318b818824 /gitano-admin/rules/destroyrepo.lace
parent860ec2f6436ac7cba31969ab13f163c9fbe691d6 (diff)
downloadtrove-setup-fb652434121c382fc622845ec714c2a14f2fde58.tar.gz
Initial ruleset and beginnings of gitano-admin overlay
Diffstat (limited to 'gitano-admin/rules/destroyrepo.lace')
-rw-r--r--gitano-admin/rules/destroyrepo.lace9
1 files changed, 9 insertions, 0 deletions
diff --git a/gitano-admin/rules/destroyrepo.lace b/gitano-admin/rules/destroyrepo.lace
new file mode 100644
index 0000000..fb2d494
--- /dev/null
+++ b/gitano-admin/rules/destroyrepo.lace
@@ -0,0 +1,9 @@
+# Rules related to the destroying of repositories
+
+# For now, owners may destroy repositories
+allow "You may destroy your own repositories" is_owner
+
+# Admins may destroy repos inside their projects
+allow "Project admins may destroy project repos" repo_has_project_code ct_admins
+
+deny "You may not destroy repositories you do not own"