Merge pull request #382 from lekoala/patch-2

allow using queryParam to disable filter
This commit is contained in:
Robbie Averill 2018-08-24 08:50:41 +12:00 committed by GitHub
commit 9ba1275b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,6 +153,9 @@ class GroupSubsites extends DataExtension implements PermissionProvider
if (Cookie::get('noSubsiteFilter') == 'true') { if (Cookie::get('noSubsiteFilter') == 'true') {
return; return;
} }
if ($dataQuery && $dataQuery->getQueryParam('Subsite.filter') === false) {
return;
}
// If you're querying by ID, ignore the sub-site - this is a bit ugly... // If you're querying by ID, ignore the sub-site - this is a bit ugly...
if (!$query->filtersOnID()) { if (!$query->filtersOnID()) {