diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-28 11:27:48 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-08-28 11:27:48 +0100 |
commit | a509b61051418af47a439b0325f89f74ddfa70ec (patch) | |
tree | b462ff07c116140a6deb5f09aff8fe7507f82c40 /example | |
parent | 6d06abc78102f54f6ba1705ae8df89ef3949c212 (diff) | |
download | gitano-a509b61051418af47a439b0325f89f74ddfa70ec.tar.gz |
COMMAND: Add config command, fix up set-head and set-description to use the same lace rules and update example lace
Diffstat (limited to 'example')
-rw-r--r-- | example/gitano-admin/rules/defines.lace | 10 | ||||
-rw-r--r-- | example/gitano-admin/rules/project.lace | 4 | ||||
-rw-r--r-- | example/gitano-admin/rules/remoteconfigchecks.lace (renamed from example/gitano-admin/rules/remoteadminchecks.lace) | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/example/gitano-admin/rules/defines.lace b/example/gitano-admin/rules/defines.lace index ffdd6cc..64af8ca 100644 --- a/example/gitano-admin/rules/defines.lace +++ b/example/gitano-admin/rules/defines.lace @@ -42,11 +42,11 @@ define op_createrepo operation createrepo define op_renamerepo operation renamerepo define op_destroyrepo operation destroyrepo -# Remote administration operations -define op_setowner operation setowner -define op_sethead operation sethead -define op_setdescription operation setdescription -define op_is_remoteadmin anyof op_setowner op_sethead op_setdescription +# Remote configuration operations +define op_config_show operation config_show +define op_config_set operation config_set +define op_config_del operation config_del +define op_is_config anyof op_config_show op_config_set op_config_del # Reference update related operations define op_createref operation createref diff --git a/example/gitano-admin/rules/project.lace b/example/gitano-admin/rules/project.lace index 219ab3e..26729d6 100644 --- a/example/gitano-admin/rules/project.lace +++ b/example/gitano-admin/rules/project.lace @@ -6,8 +6,8 @@ allow "Owners can always read and write" op_is_basic is_owner # Uncomment if you want to *force* anonymous access to all but gitano-admin # allow "Anonymous access always allowed" op_read !is_admin_repo -# Project remote-admin rules (set-head etc) -include global:remoteadminchecks op_is_remoteadmin +# Project remote-configuration rules (set-head etc) +include global:remoteconfigchecks op_is_config # Okay, if we're altering the admin ref, in we go include global:adminchecks is_admin_ref diff --git a/example/gitano-admin/rules/remoteadminchecks.lace b/example/gitano-admin/rules/remoteconfigchecks.lace index e8a4d3f..7c6a317 100644 --- a/example/gitano-admin/rules/remoteadminchecks.lace +++ b/example/gitano-admin/rules/remoteconfigchecks.lace @@ -1,6 +1,6 @@ -# Remote admin checks +# Remote config checks # Owners may do any remote admin operation they choose allow "Owners may remote-admin their repositories" is_owner -deny "You may not administer this repository remotely"
\ No newline at end of file +deny "You may not configure this repository remotely" |