summaryrefslogtreecommitdiff
path: root/skel/gitano-admin/rules/project.lace
blob: 26729d63ae6c65a3f53510c862fddc0a074a9de9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Core project administration rules

# Admins already got allowed, so this is for non-admin users only
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-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

# Now we're into branch operations.  Owners can do any normal operation
# Normal ops are create/delete/fastforward on refs
allow "Owners can create refs" op_is_normal is_owner
# We don't enable non-fastforward updates by default.  Projects must do
# this in their own rules if they want it.