stable

Clone or download

Read-only

Add Git default permissions for branches and tags

This is part of story #8419 have permissions per tags/branches With this commit, a git administrator will be able to define default fine-grained permissions for a project. These permissions are not taken into account for now. It's not possible to edit or remove them. You cannot add the same pattern multiple times. Change-Id: I1542fad8ade2b043b874ee9be8e5bc54b6d01032

Modified Files

Name
M plugins/git/db/install.sql +20 −0 Go to diff View file
A plugins/git/db/mysql/updates/2016/201606090850_add_project_fine_grained_ugroup_tables.php +78 −0 Go to diff View file
M plugins/git/include/Git.class.php +12 −2 Go to diff View file
A plugins/git/include/Git/Permissions/DefaultFineGrainedPermissionFactory.php +180 −0 Go to diff View file
A plugins/git/include/Git/Permissions/DefaultFineGrainedPermissionRepresentation.php +105 −0 Go to diff View file
A plugins/git/include/Git/Permissions/DefaultFineGrainedPermissionSaver.php +99 −0 Go to diff View file
M plugins/git/include/Git/Permissions/FineGrainedDao.php +130 −0 Go to diff View file
M plugins/git/include/GitForkPermissionsManager.class.php +1 −1 Go to diff View file
M plugins/git/include/GitPermissionsManager.class.php +39 −5 Go to diff View file
M plugins/git/include/GitPresenters/AccessControlPresenter.class.php +0 −2 Go to diff View file
M plugins/git/include/GitPresenters/AdminDefaultSettingsPresenter.php +0 −2 Go to diff View file
M plugins/git/include/GitViews.class.php +22 −14 Go to diff View file
M plugins/git/include/REST/v1/RepositoryResource.class.php +15 −2 Go to diff View file
M plugins/git/include/autoload.php +5 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +19 −2 Go to diff View file
M plugins/git/templates/access-control.mustache +0 −6 Go to diff View file
M plugins/git/tests/GitPermissionsManagerTest.php +3 −1 Go to diff View file
M plugins/git/tests/GitTest.php +1 −0 Go to diff View file