Commit 6a1fa1e4 authored by wuxiaoli's avatar wuxiaoli

传承人查看无修改权限

parent c452ea40
......@@ -57,7 +57,7 @@ class FamilyTree extends Api
///查看是否有权限
$myFamily=FamilyTreeModel::myFamilyTreePeople(["ft.family_id"=>$family_id,'fp.user_id'=>$this->auth->id]);
if(in_array($this->auth->id,explode(",",$family['rw_user_id'])) || $myFamily || $family['type'] == 1 || $family_id ==7){
if(in_array($this->auth->id,explode(",",$family['rw_user_id'])) || in_array($this->auth->id,explode(",",$family['ro_user_id'])) || $myFamily || $family['type'] == 1 || $family_id ==7){
Log::write("用户id:".$this->auth->id.'查看族谱信息是否有权限');
}else{
$this->error("暂未查到您加入族谱信息");
......
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