shell

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 25e12175337b5814ef8bf6dd1e556f45a2d248d2
parent 9d3212a557175d61c28dceffeb6a7b0222a5d5e7
Author: flupe <flupe@sbi.re>
Date:   Wed, 17 Nov 2021 12:11:59 +0100

added default rule for global repos

Diffstat:
Mpolicy.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/policy.py b/policy.py @@ -13,4 +13,8 @@ def get_perm(user, repo): m = re_private.match(repo) if m and m.group('u') == user: return READ | WRITE | CREATE + # if not a user repo, can do anything + # maybe we want to forbid creation later + if not m: + return READ | WRITE | CREATE return 0