mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Fixed Hierarchy extension detection in AssetAdmin->doAdd()
This commit is contained in:
parent
b9fc626fc9
commit
baa0c8afd4
@ -311,7 +311,7 @@ JS
|
||||
|
||||
// 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