From 62061c4da3f1b43c8d208f3888d2a8e33afe176c Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 8 Aug 2017 17:50:24 +0200 Subject: [PATCH] Adjust the ACLs for pagure on dist-git --- roles/distgit/pagure/templates/pagure.cfg | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/roles/distgit/pagure/templates/pagure.cfg b/roles/distgit/pagure/templates/pagure.cfg index 1065b29c96..f11af00a30 100644 --- a/roles/distgit/pagure/templates/pagure.cfg +++ b/roles/distgit/pagure/templates/pagure.cfg @@ -197,6 +197,7 @@ ACLS = { 'pull_request_comment': 'Comment on a pull-request of this project', 'pull_request_flag': 'Flag a pull-request of this project', 'pull_request_merge': 'Merge a pull-request of this project', + 'modify_project': 'Modify an existing project' } EXTERNAL_COMMITTER = { @@ -219,3 +220,20 @@ PDC_URL = 'https://pdc.fedoraproject.org/rest_api/v1/' GITOLITE_BACKEND = 'distgit' THEME_TEMPLATE_FOLDER = '/usr/share/pagure_dist_git/template/' + +USER_ACLS = [ + 'fork_project', + 'pull_request_close', + 'pull_request_comment', + 'pull_request_flag', + 'pull_request_merge', + 'modify_project' +] + +ADMIN_API_ACLS = [ + 'pull_request_flag', + 'pull_request_comment', + 'pull_request_merge', + 'create_project', +] +