Browse Source

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

visuddhinanda 2 years ago
parent
commit
615980e3d7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/DhammaTermController.php

+ 2 - 2
app/Http/Controllers/DhammaTermController.php

@@ -287,13 +287,13 @@ class DhammaTermController extends Controller
         if(empty($dhammaTerm->channal)){
             //查看有没有studio权限
             if($user['user_uid'] !== $dhammaTerm->owner){
-                return $this->error(__('auth.failed'),[403],200);
+                return $this->error(__('auth.failed'),[403],403);
             }
         }else{
             //查看有没有channel权限
             $power = ShareApi::getResPower($user["user_uid"],$dhammaTerm->channal,2);
             if($power < 20){
-                return $this->error(__('auth.failed'),[403],200);
+                return $this->error(__('auth.failed'),[403],403);
             }
         }
         $dhammaTerm->word = $request->get("word");