Selaa lähdekoodia

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

visuddhinanda 3 vuotta sitten
vanhempi
sitoutus
615980e3d7
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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)){
         if(empty($dhammaTerm->channal)){
             //查看有没有studio权限
             //查看有没有studio权限
             if($user['user_uid'] !== $dhammaTerm->owner){
             if($user['user_uid'] !== $dhammaTerm->owner){
-                return $this->error(__('auth.failed'),[403],200);
+                return $this->error(__('auth.failed'),[403],403);
             }
             }
         }else{
         }else{
             //查看有没有channel权限
             //查看有没有channel权限
             $power = ShareApi::getResPower($user["user_uid"],$dhammaTerm->channal,2);
             $power = ShareApi::getResPower($user["user_uid"],$dhammaTerm->channal,2);
             if($power < 20){
             if($power < 20){
-                return $this->error(__('auth.failed'),[403],200);
+                return $this->error(__('auth.failed'),[403],403);
             }
             }
         }
         }
         $dhammaTerm->word = $request->get("word");
         $dhammaTerm->word = $request->get("word");