stable
Clone or download
Read-only
This closes request #28848 GitLab repository branch prefix can be updated by any user Any user is able to update the branch prefix of any GitLab repository integration using the REST route PATCH /gitlab_repositories/{id}. This is wrong, only Git adminsitrators must be allowed to do that. Change-Id: I70febc7cc3b49d5687d8f6a3f1a061710f6cf5ef
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/gitlab/include/Artifact/Action/CreateBranchPrefixUpdater.php | +11 | −1 | Go to diff View file |
M | plugins/gitlab/include/REST/v1/GitlabRepositoryResource.php | +6 | −2 | Go to diff View file |
M | plugins/gitlab/tests/unit/Artifact/Action/CreateBranchPrefixUpdaterTest.php | +51 | −4 | Go to diff View file |