Skip to content
Snippets Groups Projects
Commit b7809112 authored by Jan Kellermann's avatar Jan Kellermann Committed by Gaurav Kapoor
Browse files

Issue #3392405: Module breaks image creation (and maybe other downloads)

parent 191439b9
No related branches found
No related tags found
1 merge request!3Fix hook_file_download()
......@@ -16,7 +16,7 @@ function documentation_generator_file_download($uri) {
$target = $stream_wrapper_manager->getTarget($uri);
if (($scheme == 'private')
&& ($target == 'documentation.docx' || 'documentation.pdf')
&& ($target == 'documentation.docx' || $target == 'documentation.pdf')
&& ($user = \Drupal::currentUser())
&& ($user->hasPermission('administer documentation generator'))
) {
......
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