mirror of
https://github.com/silverstripe/silverstripe-subsites
synced 2024-10-22 09:05:55 +00:00
MINOR correct the inheritance of SUBSITE_ACCESS_ALL (from r88928)
This commit is contained in:
parent
d4dbeb17f5
commit
30245d3dbc
@ -454,6 +454,10 @@ JS;
|
||||
else $SQL_codes = "'" . Convert::raw2sql($permCode) . "'";
|
||||
|
||||
if(!$member) return new DataObjectSet();
|
||||
|
||||
if (Permission::check('ADMIN') || Permission::check('SUBSITE_ACCESS_ALL')) {
|
||||
return DataObject::get('Subsite');
|
||||
}
|
||||
|
||||
$templateClassList = "'" . implode("', '", ClassInfo::subclassesFor("Subsite_Template")) . "'";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user