Skip to content

Commit

Permalink
Prepare SEBLOD 3.21.5 release (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed Dec 3, 2021
1 parent e8f331a commit a1cae05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cck/_/dev/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit a1cae05

Please sign in to comment.