From ffdf97afd94584e5c671f6cf76a47b3d3ff6d498 Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Wed, 24 Apr 2024 14:20:56 +0200 Subject: [PATCH] Fix for v1.15 --- Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Module.php b/Module.php index 67552f5..242939b 100644 --- a/Module.php +++ b/Module.php @@ -49,7 +49,7 @@ public function canEdit(File $file): bool public function canView(File $file): bool { return $this->isSupportedType($file) && - $file->canView() && + $file->canRead() && is_readable($file->getStore()->get()); }