diff --git a/pagure/api/fork.py b/pagure/api/fork.py index 13e1aae..73b5f30 100644 --- a/pagure/api/fork.py +++ b/pagure/api/fork.py @@ -783,7 +783,7 @@ def api_pull_request_add_flag(repo, requestid, username=None, namespace=None): @API.route( '/fork////pull-request/' '/subscribe', methods=['POST']) -@api_login_required(acls=['issue_subscribe']) +@api_login_required(acls=['pull_request_subscribe']) @api_method def api_subscribe_pull_request( repo, requestid, username=None, namespace=None): diff --git a/pagure/default_config.py b/pagure/default_config.py index f98d19b..0528217 100644 --- a/pagure/default_config.py +++ b/pagure/default_config.py @@ -257,6 +257,7 @@ ACLS = { 'pull_request_comment': 'Comment on a pull-request', 'pull_request_flag': 'Flag a pull-request', 'pull_request_merge': 'Merge a pull-request', + 'pull_request_subscribe': 'Subscribe the user with this token to a pull-request', 'issue_subscribe': 'Subscribe the user with this token to an issue', 'issue_update': 'Update an issue, status, comments, custom fields...', 'issue_update_custom_fields': 'Update the custom fields of an issue',