diff --git a/Application/Admin/Controller/UserController.class.php b/Application/Admin/Controller/UserController.class.php index dc32cb6f0..f20320617 100644 --- a/Application/Admin/Controller/UserController.class.php +++ b/Application/Admin/Controller/UserController.class.php @@ -392,8 +392,8 @@ class UserController extends AdminController if (is_null($group)) { $this->error('角色类型不存在!'); } else { - if (!IS_ROOT && strpos($group['title'], '市场专员') !== false && !isMarketLeader()) { - $this->error('市场专员编辑仅允许市场总监操作!'); + if (isMarketLeader() && strpos($group['title'], '市场专员') === false) { + $this->error('市场总监只允许操作允许编辑市场专员账号!'); } } // if (isset($_POST['mobile']) && $_POST['mobile'] != '') {