stable

Clone or download

Read-only

Rework permissions for timetracking.

This is part of story #19253 import worklog as timetracking 2 major changes have been done for timetracking, to be consistent with permissions in other services: * [NEW] Site administrators can see all times and add times in all projects * [NEW] Project administrators can see all times and add times in projects they are admins * Selected ugroups can see all times and add times * Other users cannot do anything. Change-Id: Ia2612bcccf1ecd9467ebfce78e09fe1d66f942f3

Modified Files

Name
M plugins/timetracking/include/Timetracking/Admin/AdminController.php +5 −5 Go to diff View file
M plugins/timetracking/include/Timetracking/ArtifactView/ArtifactViewBuilder.php +1 −1 Go to diff View file
M plugins/timetracking/include/Timetracking/Permissions/PermissionsRetriever.php +22 −4 Go to diff View file
M plugins/timetracking/include/Timetracking/REST/v1/ArtifactTimeRetriever.php +1 −1 Go to diff View file
M plugins/timetracking/include/Timetracking/REST/v1/Exception/UserCannotSeeTrackedTimeException.php +2 −2 Go to diff View file
M plugins/timetracking/include/Timetracking/REST/v1/TimetrackingOverviewRepresentationsBuilder.php +1 −1 Go to diff View file
M plugins/timetracking/include/Timetracking/REST/v1/TrackerRepresentationFactory.php +1 −1 Go to diff View file
M plugins/timetracking/include/Timetracking/Time/TimeRetriever.php +1 −1 Go to diff View file
M plugins/timetracking/site-content/fr_FR/LC_MESSAGES/tuleap-timetracking.po +14 −0 Go to diff View file
M plugins/timetracking/templates/tracker-admin.mustache +6 −2 Go to diff View file
A plugins/timetracking/tests/unit/Permissions/PermissionsRetrieverTest.php +312 −0 Go to diff View file
M plugins/timetracking/tests/unit/REST/v1/ArtifactTimeRetrieverTest.php +3 −3 Go to diff View file
M plugins/timetracking/tests/unit/Time/TimeRetrieverTest.php +4 −4 Go to diff View file
M plugins/timetracking/tests/unit/Time/TimetrackingOverviewRepresentationsBuilderTest.php +2 −2 Go to diff View file
M src/common/User/ForgeUserGroupFactory.php +12 −0 Go to diff View file