summaryrefslogtreecommitdiff
path: root/share/gitano/skel/gitano-admin/rules/remoteconfigchecks.lace
blob: 6f88f5f6ec8c2ff5f66dd71b9feac369fc49b8d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#  _____                   
# |_   _| __ _____   _____ 
#   | || '__/ _ \ \ / / _ \
#   | || | | (_) \ V /  __/
#   |_||_|  \___/ \_/ \___|
#
# Copyright 2012 Codethink Limited
#
# Remote config checks

# Owners may do any remote admin operation they choose
allow "Owners may remote-admin their repositories" is_owner repo_is_personal

# *-admins may remote-admin their project's repositories
allow "Project admins may admin project repos" repo_is_local_project project_admin

# lorry may remote-admin lorryable repositories
allow "Lorry may admin lorry repos" is_lorry lorryable_repo

deny "You may not configure this repository remotely"