2
0
Эх сурвалжийг харах

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

visuddhinanda 2 жил өмнө
parent
commit
b5cb73a1c0

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

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