mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00: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') {
|
||||
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 (!$query->filtersOnID()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user