From 91fe5e5acb2cb5497e41aa96640f1af91afd42d7 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 06 2017 19:18:42 +0000 Subject: Add a list of ACL for API token that are allowed to not be linked to a project --- diff --git a/pagure/default_config.py b/pagure/default_config.py index 87ce58d..9ac9d43 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -221,6 +221,17 @@ ACLS = { 'issue_update_custom_fields': 'Update the custom fields of an issue', } +# From the ACLs above lists which ones are tolerated to be associated with +# an API token that isn't linked to a particular project. +CROSS_PROJECT_ACLS = [ + 'create_project', + 'fork_project', + 'issue_comment', + 'issue_create', + 'pull_request_flag', + 'pull_request_comment', +] + # Bootstrap URLS BOOTSTRAP_URLS_CSS = 'https://apps.fedoraproject.org/global/' \ 'fedora-bootstrap-1.0.1/fedora-bootstrap.css'