fix:允许取消所有的授权
This commit is contained in:
@@ -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, "角色不存在");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user