Skip to content

Commit f38e88d

Browse files
committed
fix(auth): 修复权限维度合并逻辑,避免键冲突异常
1 parent 8009845 commit f38e88d

File tree

1 file changed

+4
-1
lines changed
  • hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/simple

1 file changed

+4
-1
lines changed

hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/simple/SimpleAuthentication.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ protected boolean fastPath() {
169169
.stream()
170170
.collect(Collectors
171171
.groupingBy(d -> d.getType().getId(),
172-
Collectors.toMap(Dimension::getId, Function.identity())));
172+
Collectors.toMap(
173+
Dimension::getId,
174+
Function.identity(),
175+
(a, b) -> a)));
173176
}
174177
}
175178
return permissionMapping != null;

0 commit comments

Comments
 (0)