mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 11:05:55 +02:00
allow using queryParam to disable filter
much better than global state (and should potentially replace cookie usage that is user controlled)
This commit is contained in:
parent
d8088edfa9
commit
6e35807dc7
@ -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…
Reference in New Issue
Block a user