Browse Source

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

visuddhinanda 2 years ago
parent
commit
d2d6b07d73
1 changed files with 1 additions and 1 deletions
  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));
     }