summaryrefslogtreecommitdiff
path: root/gitano-admin/rules/destroyrepo.lace
blob: 0b832123e90fead89b443d2683806a544453a94f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#  _____                   
# |_   _| __ _____   _____ 
#   | || '__/ _ \ \ / / _ \
#   | || | | (_) \ V /  __/
#   |_||_|  \___/ \_/ \___|
#
# Copyright 2012 Codethink Limited
#
# Rules related to the destroying of repositories

# Owners may destroy personal repositories
allow "You may destroy your own repositories" is_owner repo_is_personal

# Project admins may destroy repos inside their projects
allow "Project admins may destroy project repos" repo_is_local_project project_admin

deny "You may not destroy repositories you do not own"