瀏覽代碼

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