|
@@ -231,7 +231,7 @@ class Org extends Base
|
|
|
public function getTreeByRoles($rolesId,$userId){
|
|
|
if($rolesId == 1){ // 超级管理员
|
|
|
|
|
|
- }else if($rolesId == 2){ // 总公司管理员
|
|
|
+ }else if(in_array($rolesId,[2,537])){ // 总公司管理员
|
|
|
$orgs = Db::name('user')->where('id',$userId)->value('orgs');
|
|
|
$orgs = $orgs?explode(',',$orgs):[];
|
|
|
if($orgs){
|