blob: e4a51be3e24ed0df13f91ac3c2c2c32ccde7f342 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# _____
# |_ _| __ _____ _____
# | || '__/ _ \ \ / / _ \
# | || | | (_) \ V / __/
# |_||_| \___/ \_/ \___|
#
# Copyright 2012 Codethink Limited
#
# Rules related to renaming repositories
# Owners may rename their own repositories
allow "Owners may rename repositories" op_renamerepo repo_is_personal is_owner
# Project admins may rename repos provided they're admin of source *and* target
# Since the rename operation checks 'create' for the target, we can just
# check the source here
allow "Admins may rename project repositories" op_renamerepo repo_is_local_project project_admin
deny "You may not rename a repository you do not own"
|