Browse Source

pc权限调整

lizhen_gitee 6 months ago
parent
commit
e9094e2297
1 changed files with 8 additions and 0 deletions
  1. 8 0
      application/company/controller/auth/Group.php

+ 8 - 0
application/company/controller/auth/Group.php

@@ -76,6 +76,14 @@ class Group extends Apic
 
             $list = $this->grouplist;
         foreach($list as $key => &$val){
+            //是否是自己坐在的组
+            $val['is_self'] = 0;
+            $mygroupids = $this->auth->getGroupIds();
+            if(in_array($val['id'],$mygroupids)){
+                $val['is_self'] = 1;
+            }
+
+            //给前端用
             $val['parentId'] = $val['pid'];
         }
 //            $total = count($list);