summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-01 11:19:01 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-07-01 11:19:01 +0100
commit9e9591d71992cc4e49c77ff1193b641488a65e35 (patch)
tree3d8376f09e58bf8c3c25503018d8efe8fedbac47
parentce591e6833f652c6e60b90a53420c5095e272b24 (diff)
downloadgitano-9e9591d71992cc4e49c77ff1193b641488a65e35.tar.gz
EXAMPLE: Add support for set-head to example lace
-rw-r--r--example/gitano-admin/rules/core.lace3
-rw-r--r--example/gitano-admin/rules/defines.lace1
2 files changed, 4 insertions, 0 deletions
diff --git a/example/gitano-admin/rules/core.lace b/example/gitano-admin/rules/core.lace
index 5cdb388..3f400b1 100644
--- a/example/gitano-admin/rules/core.lace
+++ b/example/gitano-admin/rules/core.lace
@@ -19,6 +19,9 @@ include global:siteadmin op_is_admin
# Owners of repositories are allowed to hand it over
allow "Owners can hand over repositories" is_owner op_setowner
+# Owners can configure repository HEADs
+allow "Owners can set HEAD" is_owner op_sethead
+
# Site-defined rules for repository creation
include global:createrepo op_createrepo
diff --git a/example/gitano-admin/rules/defines.lace b/example/gitano-admin/rules/defines.lace
index de352b5..3e4a6ac 100644
--- a/example/gitano-admin/rules/defines.lace
+++ b/example/gitano-admin/rules/defines.lace
@@ -40,6 +40,7 @@ define op_read operation read
define op_write operation write
define op_createrepo operation createrepo
define op_setowner operation setowner
+define op_sethead operation sethead
# Reference update related operations
define op_createref operation createref