Skip to content

Commit

Permalink
Implement additional permissions check on download (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed Dec 3, 2021
1 parent 410b809 commit e8f331a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/cms/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 e8f331a

Please sign in to comment.