stable

Clone or download

Read-only

request #13747: REST endpoint GET /projects/:id/user_groups returns system user groups with a not recognized ID

The IDs of the system user groups are accepted by the REST endpoint GET /user_groups/:id. The identifiers <project_id>_<system_user_group_id> that were accepted (but not documented) are now rejected. The endpoints allowing the update of permissions of a document manager item are now accepting the system user groups. Change-Id: Iaf81dfd67b06c490bd839af8867eda296e87c1a1

Modified Files

Name
M plugins/docman/include/REST/v1/Permissions/PermissionItemUpdaterFromRESTContext.php +3 −2 Go to diff View file
M plugins/docman/phpunit/REST/v1/Permissions/PermissionItemUpdaterFromRESTContextTest.php +7 −2 Go to diff View file
M src/common/Project/ProjectUGroup.php +7 −7 Go to diff View file
M src/common/Project/REST/UserGroupRepresentation.class.php +14 −9 Go to diff View file
M src/common/Project/REST/UserGroupRetriever.php +1 −1 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +1 −7 Go to diff View file
M src/common/Project/REST/v1/UserGroupResource.class.php +25 −17 Go to diff View file
A tests/phpunit/common/Project/REST/UserGroupRepresentationTest.php +52 −0 Go to diff View file