소스 검색

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));
     }