stable

Clone or download

Read-only

feat: TrackersPermissions can fetch permissions for multiple fields

Part of request #37580 Permissions API Instead of checking field by field if user has a permission on them, we now check all at once and returns result for each. Use in CrossTrackerPermissionGate, this class check read permission for many field. *No functional changes expected* Change-Id: I6c6a172795ba54267730f9e41a8a49d2a64510da

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Permission/CrossTrackerPermissionGate.php +15 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php +6 −1 Go to diff View file
M plugins/crosstracker/include/crosstrackerPlugin.php +6 −1 Go to diff View file
M plugins/crosstracker/tests/unit/CrossTracker/Permission/CrossTrackerPermissionGateTest.php +45 −24 Go to diff View file
A plugins/tracker/include/Tracker/Permission/FieldPermissionType.php +30 −0 Go to diff View file
R plugins/tracker/tests/unit/Tracker/Permission/TrackersPermissionsTest.php Go to diff View file
A plugins/tracker/include/Tracker/Permission/SearchUserGroupsPermissionOnFields.php +33 −0 Go to diff View file
A plugins/tracker/include/Tracker/Permission/TrackersPermissionsDao.php +45 −0 Go to diff View file
A plugins/tracker/include/Tracker/Permission/TrackersPermissionsRetriever.php +104 −0 Go to diff View file
R plugins/tracker/include/Tracker/Permission/TrackersPermissions.php Go to diff View file
M plugins/tracker/include/trackerPlugin.php +2 −2 Go to diff View file
A plugins/tracker/tests/integration/Permission/TrackersPermissionsDaoTest.php +78 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/Tracker/Permission/RetrieveUserPermissionOnFieldsStub.php +70 −0 Go to diff View file
A plugins/tracker/tests/unit/Stub/Tracker/Permission/SearchUserGroupsPermissionOnFieldsStub.php +53 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Permission/TrackersPermissionsRetrieverTest.php +108 −0 Go to diff View file