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()); }