stable

Clone or download

Read-only

story #8419: Add permissions for new branches and tags

With this commit, a git administrator will be able to define fine-grained permissions for a repository. 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: I9f6c25fb18df4d2420f6f91286d1277402c2b397

Modified Files

Name
M plugins/git/db/install.sql +2 −1 Go to diff View file
A plugins/git/db/mysql/updates/2016/201606081702_add_unique_constraint_pattern.php +50 −0 Go to diff View file
M plugins/git/include/AccessRightsPresenterOptionsBuilder.php +7 −0 Go to diff View file
M plugins/git/include/Git.class.php +24 −3 Go to diff View file
M plugins/git/include/Git/Permissions/FineGrainedDao.php +82 −0 Go to diff View file
M plugins/git/include/Git/Permissions/FineGrainedPermissionFactory.php +71 −0 Go to diff View file
A plugins/git/include/Git/Permissions/FineGrainedPermissionSaver.php +99 −0 Go to diff View file
M plugins/git/include/GitActions.class.php +47 −23 Go to diff View file
M plugins/git/include/GitForkPermissionsManager.class.php +12 −4 Go to diff View file
M plugins/git/include/GitPresenters/AccessControlPresenter.class.php +19 −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 +13 −1 Go to diff View file
M plugins/git/site-content/en_US/git.tab +3 −0 Go to diff View file
M plugins/git/site-content/en_US/script_locale.txt +3 −1 Go to diff View file
M plugins/git/site-content/fr_FR/git.tab +3 −0 Go to diff View file
M plugins/git/site-content/fr_FR/script_locale.txt +3 −1 Go to diff View file
M plugins/git/templates/access-control.mustache +13 −5 Go to diff View file
M plugins/git/tests/GitActionsTest.php +8 −4 Go to diff View file
M plugins/git/tests/GitTest.php +2 −1 Go to diff View file
A plugins/git/www/scripts/permissions.js +65 −0 Go to diff View file
M plugins/git/www/themes/default/css/style.scss +19 −6 Go to diff View file