mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Fixed Hierarchy extension detection in AssetAdmin->doAdd()
This commit is contained in:
parent
b9fc626fc9
commit
baa0c8afd4
@ -308,10 +308,10 @@ JS
|
||||
|
||||
// check create permissions
|
||||
if(!singleton($class)->canCreate()) return Security::permissionFailure($this);
|
||||
|
||||
|
||||
// check addchildren permissions
|
||||
if(
|
||||
singleton($class)->hasDatabaseField('Hierarchy')
|
||||
singleton($class)->hasExtension('Hierarchy')
|
||||
&& isset($data['ParentID'])
|
||||
&& is_numeric($data['ParentID'])
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user