stable

Clone or download

Read-only

fix: Fine grained permissions must be well handled in POST git/:id/branches

This fixes request #27538 Fine grained permissions are not checked when creating a branch with REST API The fine grained permissions were not taken into account in the previous checks. Change-Id: I1fa72ab34e4f41d5ea3ec9dd21e990ce330d780f

Modified Files

Name
M plugins/git/include/REST/v1/Branch/BranchCreator.php +17 −13 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +13 −1 Go to diff View file
M plugins/git/tests/unit/REST/v1/Branch/BranchCreatorTest.php +14 −13 Go to diff View file