Skip to content
Snippets Groups Projects
Commit 85a76b66 authored by Angie Byron's avatar Angie Byron
Browse files

Oops. Correcting spacing error with previous patch.

parent 37f18786
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -147,8 +147,7 @@ function file_file_download($uri, $field_type = 'file') { ...@@ -147,8 +147,7 @@ function file_file_download($uri, $field_type = 'file') {
// temporary files where the host entity has not yet been saved (for example, // temporary files where the host entity has not yet been saved (for example,
// an image preview on a node/add form) in which case, allow download by the // an image preview on a node/add form) in which case, allow download by the
// file's owner. // file's owner.
if (empty($references) && ($file->status == FILE_STATUS_PERMANENT || $file->uid != $user->uid)) {
if(empty($references) && ($file->status == FILE_STATUS_PERMANENT || $file->uid != $user->uid)) {
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment