summaryrefslogtreecommitdiff
path: root/gitano-admin/rules/createrepo.lace
diff options
context:
space:
mode:
Diffstat (limited to 'gitano-admin/rules/createrepo.lace')
-rw-r--r--gitano-admin/rules/createrepo.lace19
1 files changed, 12 insertions, 7 deletions
diff --git a/gitano-admin/rules/createrepo.lace b/gitano-admin/rules/createrepo.lace
index ef1bffc..045d7e7 100644
--- a/gitano-admin/rules/createrepo.lace
+++ b/gitano-admin/rules/createrepo.lace
@@ -1,15 +1,20 @@
+# _____
+# |_ _| __ _____ _____
+# | || '__/ _ \ \ / / _ \
+# | || | | (_) \ V / __/
+# |_||_| \___/ \_/ \___|
+#
+# Copyright 2012 Codethink Limited
+#
# Rules related to creating repositories
# Administrators have already been permitted whatever they like
-# so this is for non-admins.
+# so this is for site-wide non-admins.
-# Uncomment the following to allow repositories in personal/username/
+##PEOPLE_COMMENT##allow "Personal repo creation is okay" repo_is_personal
-define repo_is_personal repository ~^people/${user}/
-allow "Personal repo creation is okay" repo_is_personal
-
-# Allow people in ctxxx-admins to create repositories under ctxxx
-allow "Project admins may make project repositories" repo_has_project_code ct_admin
+# Allow people in *-admins to create repositories under <foo>
+allow "Project admins may make project repositories" repo_has_project_code project_admin
# Otherwise the default is that non-admins can't create repositories
deny "Repository creation is not permitted."