stable

Clone or download

Read-only

Cross tracker - allow query for regular user

this is part of story #12160 - have a clean way to suspend a project How to test: - have a project cross tracker search based on a query with suspended project Access it with regular user: - no error - you should be able to export your results in CSV Access it with widget admin: - no functionnal changes with master: - an error is displayed - you should not be able to download your results in CSV Relgular user should never be able to update project query Change-Id: I581c1bacdd57ab995d4e242bdde96d8b724879d5

Modified Files

Name
M plugins/crosstracker/include/CrossTracker/Report/CSV/CSVExportController.php +14 −2 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Widget/ProjectCrossTrackerSearch.php +5 −1 Go to diff View file
M plugins/crosstracker/include/CrossTracker/Widget/ProjectCrossTrackerSearchPresenter.php +8 −5 Go to diff View file
A plugins/crosstracker/include/CrossTracker/Widget/WidgetPermissionChecker.php +65 −0 Go to diff View file
A plugins/crosstracker/phpunit/CrossTracker/Widget/WidgetPermissionCheckerTest.php +134 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/CrossTrackerWidget.spec.js +19 −14 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/CrossTrackerWidget.vue +8 −6 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/app.spec.js +1 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ErrorInactiveProjectMessage.vue +2 −2 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ExportCSVButton.vue +2 −2 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/index.js +3 −3 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.spec.js +8 −17 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.vue +3 −7 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/store/getters.js +11 −0 Go to diff View file
A plugins/crosstracker/scripts/cross-tracker/src/store/getters.spec.js +70 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/store/mutations.js +1 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/store/state.js +2 −1 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/user-service.js +2 −8 Go to diff View file
M plugins/crosstracker/templates/widgets/project-cross-tracker-search.mustache +1 −1 Go to diff View file