stable
Clone or download
Read-only
Part of story #36833 search on semantics and always there fields even if not defined There was no check on user read permissions of fields. Add it to sql query. *Testing:* - Tracker 1: have an always there field (e.g. @submitted_by) readable by anyone - Tracker 2: have the same field readable only by project admin - Query on this field on both trackers: - As project member you have only results from tracker 1 - As project admin you have results from both trackers Change-Id: I5613c4e2b2b10c864f16cceb82ce219475683c95
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/crosstracker/include/CrossTracker/REST/v1/CrossTrackerReportsResource.php | +1 | −0 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Date/DateFromWhereBuilder.php | +38 | −26 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/AlwaysThereField/Users/UsersFromWhereBuilder.php | +27 | −16 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/MetadataFromWhereBuilder.php | +46 | −4 | Go to diff View file |
M | plugins/crosstracker/include/crosstrackerPlugin.php | +1 | −0 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/LastUpdateByMetadataTest.php | +93 | −8 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/LastUpdateDateMetadataTest.php | +133 | −7 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/SubmittedByMetadataTest.php | +93 | −8 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/SubmittedOnMetadataTest.php | +133 | −7 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Tests/Report/ArtifactReportFactoryInstantiator.php | +1 | −0 | Go to diff View file |