summaryrefslogtreecommitdiff
path: root/gitano-admin/rules/other-project.lace
diff options
context:
space:
mode:
Diffstat (limited to 'gitano-admin/rules/other-project.lace')
-rw-r--r--gitano-admin/rules/other-project.lace5
1 files changed, 4 insertions, 1 deletions
diff --git a/gitano-admin/rules/other-project.lace b/gitano-admin/rules/other-project.lace
index ad88098..a42c06a 100644
--- a/gitano-admin/rules/other-project.lace
+++ b/gitano-admin/rules/other-project.lace
@@ -4,7 +4,7 @@
# | || | | (_) \ V / __/
# |_||_| \___/ \_/ \___|
#
-# Copyright 2012 Codethink Limited
+# Copyright 2012,2013 Codethink Limited
#
# Rules for any repository not under ##PREFIX##
@@ -17,6 +17,9 @@ allow "Anyone may write here" op_write
# Lorry can do anything reffy which is not inside the local refs
allow "Lorry may touch everything but refs/heads/##PREFIX##" op_is_reffy is_lorry !is_local_ref
+# Noone can rewind/rebase outside of their personal refs
+deny "Non-personal branches may not be rewound/rebased" op_forcedupdate !is_lorry !ref_is_personal
+
# Everyone else can do reffy things inside refs/heads/##PREFIX##
allow "Project writers may alter any refs" op_is_reffy !is_lorry is_local_ref