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(); } }