stable

Clone or download

Read-only

Restrict pattern definition

This is part of story #8419 have permissions per tags/branches The pattern is not checked in the HTML. As the form is added through JS, the pattern is a little bit modified (\* becomes *) and it does not work as expected. Change-Id: Iff71c87c1d0d6dd3089fecaa0ab1b76cd4238767

Modified Files

Name
M plugins/git/include/Git/Permissions/DefaultFineGrainedPermissionFactory.php +20 −2 Go to diff View file
A plugins/git/include/Git/Permissions/FineGrainedPatternValidator.php +33 −0 Go to diff View file
M plugins/git/include/Git/Permissions/FineGrainedPermissionFactory.php +19 −2 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +3 −1 Go to diff View file
M plugins/git/include/autoload.php +3 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +10 −2 Go to diff View file
M plugins/git/site-content/en_US/git.tab +1 −0 Go to diff View file
M plugins/git/site-content/fr_FR/git.tab +1 −0 Go to diff View file
M plugins/git/tests/Git/Permissions/DefaultFineGrainedPermissionFactoryTest.php +2 −1 Go to diff View file
A plugins/git/tests/Git/Permissions/FineGrainedPatternValidatorTest.php +61 −0 Go to diff View file
M plugins/git/tests/Git/Permissions/FineGrainedPermissionFactoryTest.php +2 −1 Go to diff View file
M plugins/git/tests/rest/GitDataBuilder.php +6 −2 Go to diff View file