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 a semantic (e.g @status) readable by anyone - Tracker 2: have a semantic readable only by project admin - Query on this semantic on both trackers: - As project member you have only results from tracker 1 - As project admin you have results from both trackers Change-Id: I211b6a2e6ce75814a6321c70bbf2297de6bfd37e
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/crosstracker/include/CrossTracker/Permission/CrossTrackerPermissionGate.php | +35 | −20 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/FromWhereSearchableVisitor.php | +2 | −1 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/MetadataFromWhereBuilder.php | +7 | −5 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/MetadataValueWrapperParameters.php | +3 | −1 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/Semantic/AssignedTo/AssignedToFromWhereBuilder.php | +68 | −18 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/Semantic/Description/DescriptionFromWhereBuilder.php | +19 | −11 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/Semantic/Status/StatusFromWhereBuilder.php | +12 | −2 | Go to diff View file |
M | plugins/crosstracker/include/CrossTracker/Report/Query/Advanced/QueryBuilder/Metadata/Semantic/Title/TitleFromWhereBuilder.php | +48 | −11 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/AssignedToMetadataTest.php | +92 | −4 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/DescriptionMetadataTest.php | +55 | −2 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/StatusMetadataTest.php | +52 | −2 | Go to diff View file |
M | plugins/crosstracker/tests/integration/CrossTracker/Report/Query/Advanced/Metadata/TitleMetadataTest.php | +55 | −2 | Go to diff View file |
M | plugins/crosstracker/tests/unit/CrossTracker/Permission/CrossTrackerPermissionGateTest.php | +4 | −4 | Go to diff View file |