##// END OF EJS Templates
pull-requests: loosen permissions on creation of PR....
marcink -
r2235:c4a73249 stable
parent child Browse files
Show More
@@ -790,9 +790,10 b' class RepoPullRequestsView(RepoAppView, '
790 h.route_path('pullrequest_new', repo_name=self.db_repo_name,
790 h.route_path('pullrequest_new', repo_name=self.db_repo_name,
791 _query=org_query))
791 _query=org_query))
792
792
793 # target repo we must have write permissions, and also later on
793 # target repo we must have read permissions, and also later on
794 # we want to check branch permissions here
794 # we want to check branch permissions here
795 target_perm = HasRepoPermissionAny(
795 target_perm = HasRepoPermissionAny(
796 'repository.read',
796 'repository.write', 'repository.admin')(target_db_repo.repo_name)
797 'repository.write', 'repository.admin')(target_db_repo.repo_name)
797 if not target_perm:
798 if not target_perm:
798 msg = _('Not Enough permissions to target repo `{}`.'.format(
799 msg = _('Not Enough permissions to target repo `{}`.'.format(
General Comments 0
You need to be logged in to leave comments. Login now