设置权限、admin、市场总监可以看所有数据

master
tping 3 years ago
parent a027f6ad58
commit badb3bca31

@ -31,8 +31,9 @@ class SocietyInfoController extends ThinkController
{ {
$model = M($this->modelName, 'tab_'); $model = M($this->modelName, 'tab_');
$map = []; $map = [];
if ($this->admininfo['username'] == "admin" || isMarketLeader()) {
// admin 和 市场总监可以看所有数据 if ($this->checkRule("Admin/SocietyInfo/lists", array('in','1,2')) || isMarketLeader() || is_administrator()) {
// 设置权限、admin、市场总监可以看所有数据
} else { } else {
// 其他用户只能看自己的 // 其他用户只能看自己的
$map['create_account'] = $this->admininfo['username']; $map['create_account'] = $this->admininfo['username'];
@ -125,7 +126,6 @@ class SocietyInfoController extends ThinkController
return ; return ;
} else { } else {
$societyInfos = $order_query->page($page,$row)->field("*")->select(); $societyInfos = $order_query->page($page,$row)->field("*")->select();
// dump($order_query->_sql());die();
} }
//分页 //分页

Loading…
Cancel
Save