Commit 7ea14c4b authored by wuxiaoli's avatar wuxiaoli

管理员查看修改权限

parent 3683eb4d
Pipeline #693 canceled with stages
......@@ -292,12 +292,12 @@ class Family extends Api
}
$info['rw_user_id'] = explode(",",$info['rw_user_id']);
$info['rw_rule'] = false;
$info['is_show'] = false;
$familyTreePeople=FamilyTreeModel::myFamilyTreePeople(["ft.family_id"=>$family_id,'fp.user_id'=>$this->auth->id]);
if(in_array($this->auth->id,$info['rw_user_id']) || $familyTreePeople ){
$info['rw_rule'] = true;
$info['is_show'] = true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment