From f873e9e9416a7a99fb6100f9cdf34493f93505ee Mon Sep 17 00:00:00 2001 From: Corentin Lux Date: Mon, 27 Jul 2026 13:47:56 +0200 Subject: [PATCH] FIX: missing condition S3 & public file --- Pragma/Docs/Models/Document.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pragma/Docs/Models/Document.php b/Pragma/Docs/Models/Document.php index f68dfd2..1143928 100644 --- a/Pragma/Docs/Models/Document.php +++ b/Pragma/Docs/Models/Document.php @@ -356,8 +356,8 @@ protected function checkPublicChanges() public function as_array() { $data = parent::as_array(); - - if($this->is_public){ + + if(S3::isConfigured() && $this->is_public){ $storage = new S3(); $data['path'] = $storage->getPresignedUrl($this->uid); }