From: Vincent Vanwaelscappel Date: Wed, 13 Oct 2021 06:30:14 +0000 (+0200) Subject: wip #4765 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=af882199f88261642bb02db49a86a9b89ed212b3;p=cubist_cms-back.git wip #4765 @0.25 --- diff --git a/src/app/Http/Controllers/CubistStorageController.php b/src/app/Http/Controllers/CubistStorageController.php index 42d0117..de05a17 100644 --- a/src/app/Http/Controllers/CubistStorageController.php +++ b/src/app/Http/Controllers/CubistStorageController.php @@ -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));