Commit 89de280f authored by Paris Liakos's avatar Paris Liakos

Issue #1837246 Edit media link does not respect edit own files permission

parent 020a4138
......@@ -953,7 +953,7 @@ function media_element_process(&$element, &$form_state, $form) {
),
),
'#weight' => 20,
'#access' => file_entity_access('update', $fid),
'#access' => file_entity_access('update', $file),
);
$element['remove'] = array(
'#type' => 'link',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment