stable

Clone or download

Read-only

Centralize tracker global administration checks

This is a refactoring. No functional changes. Follow-up to request #18330: Promotion of a tracker in +New dropdown is a project admin action Change-Id: I4112629281b05058e4f586b059deaf633213fbae

Modified Files

Name
M plugins/tracker/include/ServiceTracker.class.php +7 −2 Go to diff View file
M plugins/tracker/include/Tracker/Admin/GlobalAdmin/ArtifactLinks/ArtifactLinksController.php +8 −4 Go to diff View file
A plugins/tracker/include/Tracker/Admin/GlobalAdmin/GlobalAdminPermissionsChecker.php +51 −0 Go to diff View file
M plugins/tracker/include/Tracker/Admin/GlobalAdmin/Trackers/PromoteTrackersController.php +8 −11 Go to diff View file
M plugins/tracker/include/Tracker/Admin/GlobalAdmin/Trackers/TrackersDisplayController.php +8 −4 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerCreationPermissionChecker.php +6 −5 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +14 −29 Go to diff View file
M plugins/tracker/include/Tracker/TrackerManager.class.php +18 −44 Go to diff View file
M plugins/tracker/include/Tracker/Tracker_URLVerification.class.php +4 −2 Go to diff View file
M plugins/tracker/include/Tracker/dao/ProjectDao.php +6 −6 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +27 −3 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Admin/GlobalAdmin/GlobalAdminPermissionsCheckerTest.php +105 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Admin/GlobalAdmin/Trackers/PromoteTrackersControllerTest.php +42 −34 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/TrackerCreationPermissionCheckerTest.php +9 −11 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Permission/PermissionCheckerTest.php +20 −17 Go to diff View file
M plugins/tracker/tests/unit/Tracker/TrackerPermissionsTest.php +22 −12 Go to diff View file
M plugins/tracker/tests/unit/TrackerTest.php +0 −7 Go to diff View file