From 4e700eaefaf946f08b3bfe3611083e638d1fac64 Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Fri, 28 Apr 2023 14:22:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/dao/system/admin/SystemAdminDao.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/dao/system/admin/SystemAdminDao.php b/crmeb/app/dao/system/admin/SystemAdminDao.php index 583855d85..77173b70e 100644 --- a/crmeb/app/dao/system/admin/SystemAdminDao.php +++ b/crmeb/app/dao/system/admin/SystemAdminDao.php @@ -102,6 +102,6 @@ class SystemAdminDao extends BaseDao */ public function checkRoleUse(int $id): bool { - return (bool)$this->getModel()->whereFindInSet('roles', $id)->count(); + return (bool)$this->getModel()->where('is_del', 0)->whereFindInSet('roles', $id)->count(); } }