diff --git a/AsbCloudInfrastructure/Repository/UserRoleRepository.cs b/AsbCloudInfrastructure/Repository/UserRoleRepository.cs index e386bb7f..56daca96 100644 --- a/AsbCloudInfrastructure/Repository/UserRoleRepository.cs +++ b/AsbCloudInfrastructure/Repository/UserRoleRepository.cs @@ -5,7 +5,6 @@ using AsbCloudApp.Repositories; using AsbCloudDb; using AsbCloudDb.Model; using AsbCloudInfrastructure.EfCache; -using DocumentFormat.OpenXml.Vml.Office; using Mapster; using Microsoft.EntityFrameworkCore; using System; @@ -213,21 +212,6 @@ namespace AsbCloudInfrastructure.Repository DropCacheRelationUserRoleUserRole(); } - //private IEnumerable GetNestedRoleIds(UserRoleDto dto) - //{ - // var result = new List(); - // if (dto.Roles is not null) - // { - // foreach (var role in dto.Roles) - // { - // result.Add(role.Id); - // if (role.Roles is not null) - // GetNestedRoleIds(role); - // } - // } - // return result; - //} - private async Task UpdatePermissionsAsync(UserRoleDto dto, CancellationToken token) { if (dto?.Permissions is null)