stable

Clone or download

Read-only

User with REST read only special permission can access all the content through the API

This is part story #13669 permission delegation for a read-only site admin (REST) If you add directly in the db the new permission delegation (id: 9) for a given forge user group, then all the members must have access to all the content through the web UI. Dedicated checks for each API endpoints will be done. This is not yet possible to add through the siteamdin web UI this new permission. Change-Id: Iefc3dd2b5d1d56785ed7c89dfccc563652d24281

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +10 −0 Go to diff View file
M src/common/REST/BasicAuthentication.class.php +29 −1 Go to diff View file
M src/common/REST/UserManager.class.php +22 −3 Go to diff View file
A src/common/User/ForgeUserGroupPermission/RESTReadOnlyAdmin/RestReadOnlyAdminPermission.php +43 −0 Go to diff View file
A src/common/User/ForgeUserGroupPermission/RESTReadOnlyAdmin/RestReadOnlyAdminUser.php +31 −0 Go to diff View file
A src/common/User/ForgeUserGroupPermission/RESTReadOnlyAdmin/RestReadOnlyAdminUserBuilder.php +51 −0 Go to diff View file
M src/common/User/ForgeUserGroupPermissionsFactory.class.php +6 −1 Go to diff View file
A tests/phpunit/common/User/ForgeUserGroupPermission/RESTReadOnlyAdmin/RestReadOnlyAdminUserBuilderTest.php +111 −0 Go to diff View file