Ver Fonte

if($power < 20){

visuddhinanda há 2 anos atrás
pai
commit
11e8d4ff85
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      app/Http/Controllers/WbwController.php

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

@@ -50,8 +50,8 @@ class WbwController extends Controller
         if($channel->owner_uid !== $user["user_uid"]){
             //判断是否为协作
             $power = ShareApi::getResPower($user["user_uid"],$channel->uid);
-            if($power<30){
-                return $this->error(__('auth.failed'));
+            if($power < 20){
+                return $this->error(__('auth.failed'),[],403);
             }
         }
         //查看WbwBlock是否已经建立