# HG changeset patch # User Marcin Kuzminski # Date 2017-11-11 09:44:24 # Node ID c4a732491b96a451eb229561523da51b571e77c8 # Parent 8f4440a24e416bb456208544542755b543159747 pull-requests: loosen permissions on creation of PR. - in fork based workflow we want still users with just read permissions to open a PR againt that repository. diff --git a/rhodecode/apps/repository/views/repo_pull_requests.py b/rhodecode/apps/repository/views/repo_pull_requests.py --- a/rhodecode/apps/repository/views/repo_pull_requests.py +++ b/rhodecode/apps/repository/views/repo_pull_requests.py @@ -790,9 +790,10 @@ class RepoPullRequestsView(RepoAppView, h.route_path('pullrequest_new', repo_name=self.db_repo_name, _query=org_query)) - # target repo we must have write permissions, and also later on + # target repo we must have read permissions, and also later on # we want to check branch permissions here target_perm = HasRepoPermissionAny( + 'repository.read', 'repository.write', 'repository.admin')(target_db_repo.repo_name) if not target_perm: msg = _('Not Enough permissions to target repo `{}`.'.format(