Преглед на файлове

return $this->error(__('auth.failed'),[],403);

visuddhinanda преди 2 години
родител
ревизия
d2d6b07d73
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/Http/Controllers/ArticleController.php

+ 1 - 1
app/Http/Controllers/ArticleController.php

@@ -306,7 +306,7 @@ class ArticleController extends Controller
 
         $canRead = ArticleController::userCanRead($user_uid,$article);
         if(!$canRead){
-            return $this->error(__('auth.failed'),[],401);
+            return $this->error(__('auth.failed'),[],403);
         }
         return $this->ok(new ArticleResource($article));
     }