From 393b7db03b9ae1f9b6e20237e0e944f8fcb877d5 Mon Sep 17 00:00:00 2001 From: ildyria Date: Mon, 26 Jun 2023 00:50:04 +0200 Subject: [PATCH] fixes --- app/Http/Controllers/Administration/SharingController.php | 4 ++-- tests/Feature/Traits/CatchFailures.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Administration/SharingController.php b/app/Http/Controllers/Administration/SharingController.php index 0a0694499bd..febb455f201 100644 --- a/app/Http/Controllers/Administration/SharingController.php +++ b/app/Http/Controllers/Administration/SharingController.php @@ -93,8 +93,8 @@ private function updateLinks(array $userIds, array $albumIds): void $albumIds, [ APC::IS_LINK_REQUIRED => false, // In sharing no required link is needed - APC::GRANTS_DOWNLOAD => true, // Configs::getValueAsBool('grants_download'), - APC::GRANTS_FULL_PHOTO_ACCESS => true, // Configs::getValueAsBool('grants_full_photo_access'), + APC::GRANTS_DOWNLOAD => Configs::getValueAsBool('grants_download'), + APC::GRANTS_FULL_PHOTO_ACCESS => Configs::getValueAsBool('grants_full_photo_access'), ], false); } diff --git a/tests/Feature/Traits/CatchFailures.php b/tests/Feature/Traits/CatchFailures.php index e11110d16bd..546c843af46 100644 --- a/tests/Feature/Traits/CatchFailures.php +++ b/tests/Feature/Traits/CatchFailures.php @@ -3,6 +3,7 @@ namespace Tests\Feature\Traits; use Illuminate\Testing\TestResponse; +use Symfony\Component\HttpFoundation\StreamedResponse; /** * This trait allows to retrieve the message returned by the back-end in case of unexpected results.