市场业绩提成市场总监管理组添加查看全部用户的权限

master
zhengyongxing 5 years ago
parent bded27756e
commit 1acef89380

@ -2593,7 +2593,7 @@ function getMarketAdmin() {
$map['group_id'] = ['in','11,12,21']; $map['group_id'] = ['in','11,12,21'];
$admin_id = $_SESSION['onethink_admin']['user_auth']['uid']; $admin_id = $_SESSION['onethink_admin']['user_auth']['uid'];
$map['menber.uid'] = $admin_id; $map['menber.uid'] = $admin_id;
if(is_administrator()||session('user_group_id') == 15) { if(is_administrator()||session('user_group_id') == 15||session('user_group_id') == 14) {
unset($map['menber.uid']); unset($map['menber.uid']);
} }

@ -482,7 +482,7 @@ class MarketPercentageController extends ThinkController
$admin_id = $_SESSION['onethink_admin']['user_auth']['uid']; $admin_id = $_SESSION['onethink_admin']['user_auth']['uid'];
$map['admin_id'] = $admin_id; $map['admin_id'] = $admin_id;
if(is_administrator()||session('user_group_id') == 15) { if(is_administrator()||session('user_group_id') == 15||session('user_group_id') == 14) {
unset($map['admin_id']); unset($map['admin_id']);
$_REQUEST['admin_id']?($map['admin_id'] = $_REQUEST['admin_id']):''; $_REQUEST['admin_id']?($map['admin_id'] = $_REQUEST['admin_id']):'';
} }

Loading…
Cancel
Save