stable

Clone or download

Read-only

story #8160: adding permission on artifact field data to /trackers/:id route

- in order to have same values in UI as in REST, refactoring the class a bit to return user group names instead of short names - refactoring user_groups identifiers so that they match across the platform - allowing access to user group definitions to those who can see the groups (Event) Note: default values are not yet managed properly with the correct form (next changeset) Change-Id: Ia65054719db6d3ee1512dddf40e20f942b2028dc

Modified Files

Name
A plugins/tracker/include/REST/v1/TrackerFieldRepresentations/PermissionsOnArtifacts.class.php +46 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_PermissionsOnArtifact.class.php +11 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElementFactory.class.php +21 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_PermissionsOnArtifact.class.php +233 −148 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +12 −0 Go to diff View file
M plugins/tracker/include/autoload.php +3 −2 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +14 −0 Go to diff View file
M src/common/REST/ProjectAuthorization.class.php +28 −0 Go to diff View file
M src/common/event/Event.class.php +10 −0 Go to diff View file
M src/common/project/ProjectUGroup.class.php +15 −2 Go to diff View file
M src/common/project/REST/UserGroupRepresentation.class.php +51 −2 Go to diff View file
M src/common/project/REST/v1/UserGroupResource.class.php +67 −41 Go to diff View file
M src/common/user/REST/v1/UserResource.php +1 −0 Go to diff View file
M tests/lib/TestDataBuilder.php +2 −1 Go to diff View file
M tests/rest/ProjectTest.php +10 −10 Go to diff View file
M tests/rest/UserGroupTest.php +11 −5 Go to diff View file