Commit b379d923 authored by hujun's avatar hujun

独家方特殊权限处理

parent c65e61bc
...@@ -165,6 +165,22 @@ class Basic extends Controller ...@@ -165,6 +165,22 @@ class Basic extends Controller
} }
} }
} }
//没有独家方编辑权限处理
if ($requestPath == 'index/editExclusive' && isset($this->params['exclusive_id'])) {
$m_house_agent = new GHousesToAgents();
//独家方
$exclusive_num = $m_house_agent->alias('a')
->field('a.id')
->join('a_agents b', 'a.agents_id=b.id', 'left')
->where('a.is_del', 0)
->where('a.type', 3)
->where('a.agents_id', $this->params['exclusive_id'])
->count();
if ($exclusive_num > 0) {
$is_auth = 1;
}
}
} }
if (empty($is_auth) && $this->userId != 1) { if (empty($is_auth) && $this->userId != 1) {
......
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