stable

Clone or download

Read-only

feat: TrackersPermissionsRetriever can fetch permissions for multiple trackers

Part of request #37580 Permissions API Instead of checking Tracker by Tracker if user can see them, we now check all at once and returns result for each *No functional changes expected* Change-Id: Id279ecfa62b8f4479ba068ffd80e604d81f455a3

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Permission/CrossTrackerPermissionGate.php +11 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +8 −1 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +12 −5 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Permission/CrossTrackerPermissionGateTest.php +21 −21 Go to diff View file
M plugins/tracker/include/Tracker/Permission/RetrieveUserPermissionOnFields.php +2 −2 Go to diff View file
A plugins/tracker/include/Tracker/Permission/RetrieveUserPermissionOnTrackers.php +35 −0 Go to diff View file
A plugins/tracker/include/Tracker/Permission/SearchUserGroupsPermissionOnTrackers.php +33 −0 Go to diff View file
A plugins/tracker/include/Tracker/Permission/TrackerPermissionType.php +28 −0 Go to diff View file
M plugins/tracker/include/Tracker/Permission/TrackersPermissionsDao.php +45 −3 Go to diff View file
M plugins/tracker/include/Tracker/Permission/TrackersPermissionsRetriever.php +71 −10 Go to diff View file
R plugins/tracker/include/Tracker/Permission/UserPermissionsOnObjects.php Go to diff View file
M plugins/tracker/tests/integration/Permission/TrackersPermissionsDaoTest.php +36 −2 Go to diff View file
M plugins/tracker/tests/integration/Test/Builders/TrackerDatabaseBuilder.php +12 −0 Go to diff View file
M plugins/tracker/tests/unit/Stub/Tracker/Permission/RetrieveUserPermissionOnFieldsStub.php +4 −4 Go to diff View file
A plugins/tracker/tests/unit/Stub/Tracker/Permission/RetrieveUserPermissionOnTrackersStub.php +62 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/Tracker/Permission/SearchUserGroupsPermissionOnTrackersStub.php +53 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Permission/TrackersPermissionsRetrieverTest.php +70 −5 Go to diff View file