From ad307491b61225a8965f829b08fea1fe9deea507 Mon Sep 17 00:00:00 2001 From: Julen Landa Alustiza Date: Nov 13 2019 16:47:11 +0000 Subject: pagure/api/fork.py: allow rebasing with non project tokens Since we show the rebase button to actors that could not have rights on the PR receiving project, we should allow using global tokens and not just project tokens --- diff --git a/pagure/api/fork.py b/pagure/api/fork.py index e1330f4..37ee2b1 100644 --- a/pagure/api/fork.py +++ b/pagure/api/fork.py @@ -682,7 +682,7 @@ def api_pull_request_rebase(repo, requestid, username=None, namespace=None): repo = _get_repo(repo, username, namespace) _check_pull_request(repo) - _check_token(repo) + _check_token(repo, project_token=False) request = _get_request(repo, requestid) if not is_repo_committer(repo):