mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 14:31:04 +00:00
修复删除管理员BUG
This commit is contained in:
parent
8f8415a966
commit
4e700eaefa
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user