diff --git a/pagure/api/fork.py b/pagure/api/fork.py index 3cf6626..cf6a0a8 100644 --- a/pagure/api/fork.py +++ b/pagure/api/fork.py @@ -849,7 +849,7 @@ def api_subscribe_pull_request( raise pagure.exceptions.APIError( 404, error_code=APIERROR.EPULLREQUESTSDISABLED) - if (api_authenticated() and flask.g.token and flask.g.token.project \ + if (api_authenticated() and flask.g.token and flask.g.token.project and repo != flask.g.token.project) or not authenticated(): raise pagure.exceptions.APIError( 401, error_code=APIERROR.EINVALIDTOK)