stable

Clone or download

Read-only

Enable fine-grained permission in a repository

This task is part of story #8419 have permissions per tags/branches For now, a git administrator that have enabled "Lab Features" is able to check a new checkbox in Git repository access rights pane. The definition per branches and/or tags will be done in the next commit. Change-Id: Ia5a147aef83553f60a06cf9b858978cd1f42927a

Modified Files

Name
M plugins/git/db/install.sql +4 −0 Go to diff View file
A plugins/git/db/mysql/updates/2016/201606031138_add_plugin_git_repository_fine_grained_permissions_enabled_table.php +51 −0 Go to diff View file
M plugins/git/db/uninstall.sql +1 −0 Go to diff View file
M plugins/git/include/Git.class.php +26 −4 Go to diff View file
A plugins/git/include/Git/Permissions/FineGrainedDao.php +58 −0 Go to diff View file
A plugins/git/include/Git/Permissions/FineGrainedRetriever.php +44 −0 Go to diff View file
A plugins/git/include/Git/Permissions/FineGrainedUpdater.php +48 −0 Go to diff View file
M plugins/git/include/GitActions.class.php +18 −6 Go to diff View file
M plugins/git/include/GitForkPermissionsManager.class.php +23 −5 Go to diff View file
M plugins/git/include/GitPresenters/AccessControlPresenter.class.php +22 −4 Go to diff View file
M plugins/git/include/GitPresenters/AdminDefaultSettingsPresenter.php +32 −10 Go to diff View file
M plugins/git/include/GitViews.class.php +18 −4 Go to diff View file
M plugins/git/include/GitViews/RepoManagement/Pane/AccessControl.class.php +11 −1 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 +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/fr_FR/git.tab +3 −0 Go to diff View file
M plugins/git/templates/access-control.mustache +16 −1 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
M plugins/git/www/themes/default/css/style.scss +4 −0 Go to diff View file