stable

Clone or download

Read-only

story #8289: Take into account the project_members group

We change the way to add and remove members. Instead of deleting all the members and adding the members passed through the references, we now delete only the members not passed through the references and we add the users newly added through the references. To be consistent with the Web UI : * We can remove a project member that is suspended * We cannot add a suspended user as a project member * We cannot remove a user that is project admin Change-Id: I32c4f67e1956d56ea402b298a0a346a5fd7ef026

Modified Files

Name
M src/common/dao/UGroupUserDao.class.php +24 −2 Go to diff View file
M src/common/project/ProjectUGroup.class.php +16 −6 Go to diff View file
M src/common/project/REST/v1/UserGroupResource.class.php +5 −5 Go to diff View file
M src/common/project/UGroupManager.class.php +49 −4 Go to diff View file
M tests/lib/rest/TestDataBuilder.php +1 −0 Go to diff View file
M tests/rest/UserGroupTest.php +68 −0 Go to diff View file