tongshanglei 3 년 전
부모
커밋
b51f5777de
1개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. 8 8
      catch/permissions/model/Area.php

+ 8 - 8
catch/permissions/model/Area.php

@@ -44,10 +44,10 @@ class Area extends Model
     public function getList()
     {
       $cond = [];
-      if(!Utils::isSuperAdmin()){ // 非超级管理员
-        $auth_areas = (new Users)->getAreaIdBy();
-        $cond[] = ['id', 'in', json_decode($auth_areas,true)];
-      }
+      // if(!Utils::isSuperAdmin()){ // 非超级管理员
+      //   $auth_areas = (new Users)->getAreaIdBy();
+      //   $cond[] = ['id', 'in', json_decode($auth_areas,true)];
+      // }
       $res = $this->catchSearch()
                   ->order('id', 'desc')
                   ->where($cond)
@@ -61,10 +61,10 @@ class Area extends Model
     public function getAreaTreeData()
     {
       $cond = [];
-      if(!Utils::isSuperAdmin()){ // 非超级管理员
-        $auth_areas = (new Users)->getAreaIdBy();
-        return json_decode($auth_areas, true);
-      }
+      // if(!Utils::isSuperAdmin()){ // 非超级管理员
+      //   $auth_areas = (new Users)->getAreaIdBy();
+      //   return json_decode($auth_areas, true);
+      // }
       
 
       return [];