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