Selaa lähdekoodia

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

visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
d2d6b07d73
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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));
     }