diff --git a/libraries/cms/cck/dev/helper.php b/libraries/cms/cck/dev/helper.php index 519d68aea..0a62ed031 100644 --- a/libraries/cms/cck/dev/helper.php +++ b/libraries/cms/cck/dev/helper.php @@ -249,7 +249,7 @@ public static function getDownloadInfo( $id, $fieldname ) JPluginHelper::importPlugin( 'cck_storage_location' ); if ( !JCck::callFunc_Array( 'plgCCK_Storage_Location'.$core->storage_location, 'access', array( $core->pk, false ) ) ) { - $canEdit = $user->authorise( 'core.edit', 'com_cck.form.'.$config['type_id'] ); + $canEdit = $user->authorise( 'core.edit', 'com_cck.form.'.$core->type_id ); if ( $user->id && !$user->guest ) { $canEditOwn = $user->authorise( 'core.edit.own', 'com_cck.form.'.$core->type_id );