mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
Merge branch '3'
This commit is contained in:
commit
3f53da050c
@ -2536,8 +2536,7 @@ class SiteTree extends DataObject implements PermissionProvider,i18nEntityProvid
|
|||||||
// Otherwise, the class and all its subclasses are allowed.
|
// Otherwise, the class and all its subclasses are allowed.
|
||||||
if(substr($candidate,0,1) == '*') {
|
if(substr($candidate,0,1) == '*') {
|
||||||
$allowedChildren[] = substr($candidate,1);
|
$allowedChildren[] = substr($candidate,1);
|
||||||
} else {
|
} elseif ($subclasses = ClassInfo::subclassesFor($candidate)) {
|
||||||
$subclasses = ClassInfo::subclassesFor($candidate);
|
|
||||||
foreach($subclasses as $subclass) {
|
foreach($subclasses as $subclass) {
|
||||||
if ($subclass == 'SiteTree_root' || singleton($subclass) instanceof HiddenClass) {
|
if ($subclass == 'SiteTree_root' || singleton($subclass) instanceof HiddenClass) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user