fix:允许取消所有的授权

This commit is contained in:
曾文豪
2024-08-11 20:19:57 +08:00
parent d4e97babf4
commit 2ca224f7a5

View File

@@ -101,6 +101,10 @@ public class CoreRoleService extends TsServiceBase<CoreRoleGroupMapper, CoreRole
.eq("group_id", dto.getId())
);
if (CollUtil.isEmpty(dto.getMenuIds())) {
return;
}
CoreRoleGroup roleGroup = getById(dto.getId());
Validator.validateNotEmpty(roleGroup, "角色不存在");