Commit a3815b7f authored by zhuwei's avatar zhuwei

1

parent 8b7e7353
...@@ -588,8 +588,9 @@ class UserService ...@@ -588,8 +588,9 @@ class UserService
*/ */
public function removeUserBind($now_user_id,$user_id,$agent_id){ public function removeUserBind($now_user_id,$user_id,$agent_id){
// 检查权限 客方自己 有权限的人 // 检查权限 客方自己 有权限的人
$user_agent_id = $this->user->getUserByWhereValue('agent_id', ['id'=>$now_user_id]);
$s_vip = new VipService(); $s_vip = new VipService();
$user_agent_id = $this->user->getUserByWhereValue('agent_id', ['id'=>$now_user_id]);
$is_can_edit = $s_vip->vip($agent_id,'removeUserBind');//0:有权限 1:无权限 $is_can_edit = $s_vip->vip($agent_id,'removeUserBind');//0:有权限 1:无权限
if (($is_can_edit == 1) && ($user_agent_id != $agent_id)) { if (($is_can_edit == 1) && ($user_agent_id != $agent_id)) {
......
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