From 4bb7015e1be322502b9ea084b3f9c76b449a8945 Mon Sep 17 00:00:00 2001 From: ELF <360197197@qq.com> Date: Mon, 31 Aug 2020 19:31:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/UserController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'] != '') {