blob: 1fcc46afdd90c611d1bb813011c05275f54bc2bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# Prepare the initial definitions
default deny "The ruleset didn't provide access. Denying by default."
include global:defines
# Now, if we're in the admin group, we can always do stuff
allow "Administrators can do anything" is_admin
# Owners of repositories are allowed to hand it over
allow "Owners can hand over repositories" is_owner op_setowner
# Site-defined rules for repository creation
include global:createrepo op_createrepo
# Site-defined rules for project repositories
include global:project
# Now the project rules themselves
include main
# Now, if you want to allow anonymous access if the project doesn't prevent
# it, then you can uncomment the following:
# allow "Anonymous access is okay" op_read !is_admin_repo
|