mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
Merge pull request #382 from lekoala/patch-2
allow using queryParam to disable filter
This commit is contained in:
commit
9ba1275b49
@ -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()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user