浏览代码

if($power < 20){

visuddhinanda 3 年之前
父节点
当前提交
11e8d4ff85
共有 1 个文件被更改,包括 2 次插入2 次删除
  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"]){
         if($channel->owner_uid !== $user["user_uid"]){
             //判断是否为协作
             //判断是否为协作
             $power = ShareApi::getResPower($user["user_uid"],$channel->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是否已经建立
         //查看WbwBlock是否已经建立