场景获客优化子账号只能展示自己的数据
This commit is contained in:
@@ -30,7 +30,7 @@ class PlanSceneV1Controller extends BaseController
|
||||
'companyId' => $this->getUserInfo('companyId'),
|
||||
];
|
||||
|
||||
if($this->getUserInfo('isAdmin')){
|
||||
if(!$this->getUserInfo('isAdmin')){
|
||||
$where['userId'] = $this->getUserInfo('id');
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ class PlanSceneV1Controller extends BaseController
|
||||
}
|
||||
|
||||
// 如果是管理员,需要验证用户权限
|
||||
if ($this->getUserInfo('isAdmin')) {
|
||||
if (!$this->getUserInfo('isAdmin')) {
|
||||
$userPlan = Db::name('customer_acquisition_task')
|
||||
->where([
|
||||
'id' => $planId,
|
||||
|
||||
Reference in New Issue
Block a user