Explorar o código

pc权限调整

lizhen_gitee hai 6 meses
pai
achega
e9094e2297
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  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);