]> _ Git - cubist_cms-back.git/commitdiff
wip #4765 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Oct 2021 06:30:14 +0000 (08:30 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Oct 2021 06:30:14 +0000 (08:30 +0200)
src/app/Http/Controllers/CubistStorageController.php

index 42d0117ac9bbbf6cadabc07620ddb80a0d1614c3..de05a17059ee41d712a16cddd48e9e0554524592 100644 (file)
@@ -10,11 +10,9 @@ class CubistStorageController extends XSendFileController
     public function storage($file)
     {
         if (!Auth::check()) {
-            dd(401);
             return response(null)->setStatusCode('401');
         }
         if (!can('edition')) {
-            dd(403);
             return response(null)->setStatusCode('403');
         }
         return $this->xSendFile(storage_path('app/public/' . $file));