distgit: Add pull_request_close ACL

Currently it's not possible to create token with pull_request_close ACL
for user (see https://pagure.io/pagure-dist-git/issue/144).

This commit will allow users to add pull_request_close ACL to their
token. The user is still validated if it has the permission, so adding
this ACL to user token doesn't allow user to use API to close any PR
currently opened in dist-git.

Thanks @pingou for helping me with this.

Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
Michal Konečný 2021-08-11 15:16:56 +02:00
parent bc57a02675
commit 98ea6b11fc

View file

@ -269,6 +269,7 @@ CROSS_PROJECT_ACLS = [
'fork_project',
'modify_project',
'pull_request_create',
'pull_request_close',
'pull_request_comment',
'pull_request_merge',
'pull_request_flag',