stable
Clone or download
Read-only
request #9740: Anonymous users should not be allowed to create pull requests
How to test this: - Allow anonymous users on your platform - When you browse a repository that is readable by anonymous users, there should not be a button "Create pull requests" This change has previously been integrated (see commit ae22e721551) but reverted for reasons non relative to the contribution. Change-Id: Ibfe743186623f258e8b6d4b467182c8e0bb1efdd
Modified Files
Name | ||||
---|---|---|---|---|
A | include/PullRequest/Exception/PullRequestAnonymousUserException.php | +31 | −0 | Go to diff View file |
M | include/PullRequest/Exception/PullRequestNotCreatedException.php | +1 | −1 | Go to diff View file |
M | include/PullRequest/PullRequestCreator.php | +12 | −2 | Go to diff View file |
M | include/PullRequest/REST/v1/PullRequestsResource.php | +3 | −0 | Go to diff View file |
M | include/PullRequest/Router.php | +7 | −0 | Go to diff View file |
M | include/autoload.php | +3 | −2 | Go to diff View file |
M | include/pullrequestPlugin.class.php | +25 | −19 | Go to diff View file |
M | templates/additional-actions.mustache | +6 | −1 | Go to diff View file |
M | www/themes/default/css/style.scss | +4 | −0 | Go to diff View file |