From b78091125562a47fcbc6645e705e2bbd6171034b Mon Sep 17 00:00:00 2001 From: Jan Kellermann <44717-werk21@users.noreply.drupalcode.org> Date: Sun, 8 Oct 2023 08:39:34 +0000 Subject: [PATCH] Issue #3392405: Module breaks image creation (and maybe other downloads) --- documentation_generator.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation_generator.module b/documentation_generator.module index 51735e2..55e7fec 100644 --- a/documentation_generator.module +++ b/documentation_generator.module @@ -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')) ) { -- GitLab