feat:(hotfix/20240906) 修改菜单缓存逻辑
This commit is contained in:
parent
602ac65618
commit
b16da5cd22
@ -1011,7 +1011,7 @@ public class PermissionQueryServiceImpl implements PermissionQueryService {
|
||||
.collect(Collectors.toList()))
|
||||
.orElseGet(Lists::newArrayList);
|
||||
|
||||
Set<Long> normalFeatureIds = resolveNormalRole(productFeatureSources, saasRole, roleFeatureResources, roleFeatureResourceMap);
|
||||
Set<Long> normalFeatureIds = resolveNormalRole(productFeatureSources, saasRole, roleFeatureResources);
|
||||
|
||||
Set<Long> result = Sets.newHashSet();
|
||||
result.addAll(adminFeatureIds);
|
||||
@ -1042,12 +1042,7 @@ public class PermissionQueryServiceImpl implements PermissionQueryService {
|
||||
|
||||
private Set<Long> resolveNormalRole(List<ProductSaasFeatureResourceCacheService.FeatureResourceDTO> workspaceProduct,
|
||||
SaasRoleUserV2DTO.SaasRole saasRole,
|
||||
List<RoleSaasFeatureResourceCacheService.SaasFeatureResourceDTO> roleFeatureResources,
|
||||
Map<Long, List<RoleSaasFeatureResourceCacheService.SaasFeatureResourceDTO>> roleFeatureResourceMap) {
|
||||
|
||||
if (RoleTypeEnum.isAdmin(saasRole.getRoleType())) {
|
||||
return Collections.emptySet();
|
||||
}
|
||||
List<RoleSaasFeatureResourceCacheService.SaasFeatureResourceDTO> roleFeatureResources) {
|
||||
|
||||
if (CollectionUtils.isEmpty(roleFeatureResources)) {
|
||||
return Collections.emptySet();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user