MINOR Fixed Hierarchy extension detection in AssetAdmin->doAdd()

This commit is contained in:
Ingo Schommer 2011-04-19 21:16:03 +12:00
parent b9fc626fc9
commit baa0c8afd4

View File

@ -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'])
) {