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.