合同管理员权限读取错误问题修正
This commit is contained in:
parent
d14f945598
commit
fe5b7a987a
@ -26,7 +26,7 @@ class Api extends BaseController
|
|||||||
$where[] = ['delete_time', '=', 0];
|
$where[] = ['delete_time', '=', 0];
|
||||||
$where[] = ['check_status', '=', 2];
|
$where[] = ['check_status', '=', 2];
|
||||||
$uid = $this->uid;
|
$uid = $this->uid;
|
||||||
$auth = isAuth($uid,'contract');
|
$auth = isAuth($uid,'contract_admin');
|
||||||
if($auth==0){
|
if($auth==0){
|
||||||
$whereOr[] =['admin_id|prepared_uid|sign_uid|keeper_uid', '=', $uid];
|
$whereOr[] =['admin_id|prepared_uid|sign_uid|keeper_uid', '=', $uid];
|
||||||
$whereOr[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',share_ids)")];
|
$whereOr[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',share_ids)")];
|
||||||
|
@ -40,7 +40,7 @@ class Index extends BaseController
|
|||||||
$where[] = ['a.archive_status', '=', 0];
|
$where[] = ['a.archive_status', '=', 0];
|
||||||
|
|
||||||
$uid = $this->uid;
|
$uid = $this->uid;
|
||||||
$auth = isAuth($uid,'contract');
|
$auth = isAuth($uid,'contract_admin');
|
||||||
if($auth==0){
|
if($auth==0){
|
||||||
$whereOr[] =['a.admin_id|a.prepared_uid|a.sign_uid|a.keeper_uid', '=', $uid];
|
$whereOr[] =['a.admin_id|a.prepared_uid|a.sign_uid|a.keeper_uid', '=', $uid];
|
||||||
$whereOr[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',a.share_ids)")];
|
$whereOr[] = ['', 'exp', Db::raw("FIND_IN_SET('{$uid}',a.share_ids)")];
|
||||||
@ -56,6 +56,9 @@ class Index extends BaseController
|
|||||||
$list = $model->get_list($param, $where, $whereOr);
|
$list = $model->get_list($param, $where, $whereOr);
|
||||||
return table_assign(0, '', $list);
|
return table_assign(0, '', $list);
|
||||||
} else {
|
} else {
|
||||||
|
$uid = $this->uid;
|
||||||
|
$auth = isAuth($uid,'contract_admin');
|
||||||
|
View::assign('auth', $auth);
|
||||||
return view();
|
return view();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user