bugfix: 修复无法正确删除角色问题
This commit is contained in:
parent
5e70300272
commit
438d322b84
@ -662,7 +662,7 @@ public class RoleServiceImpl implements RoleService {
|
||||
.list();
|
||||
|
||||
if (CollectionUtil.isNotEmpty(saasRoleUserRelations)) {
|
||||
throw new cn.axzo.basics.common.exception.ServiceException("该角色下存在关联成员,无法进行删除!");
|
||||
throw new cn.axzo.basics.common.exception.ServiceException("当前角色已被用户使用,无法删除!");
|
||||
}
|
||||
saasRoleDao.delete(roleIds);
|
||||
roleUserRelationDao.deleteByRoldId(roleIds);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user