Explorar o código

if($power < 20){

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
11e8d4ff85
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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是否已经建立