8000 fix: DATA 类角色字符串截取错误 · cadecode/uni-boot-cloud@6065472 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6065472

Browse files
committed
fix: DATA 类角色字符串截取错误
1 parent ae183d8 commit 6065472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/framework_base/src/main/java/com/github/cadecode/uniboot/framework/base/plugin/handler/UserRoleDataScopeResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public List<Object> getScopes() {
3737
return userDetails.getRoles()
3838
.stream()
3939
.filter(o -> Objects.nonNull(o) && o.startsWith(SCOPE_ROLE_PREFIX))
40-
.map(o -> (Object) o.substring(SCOPE_ROLE_PREFIX.length() - 1))
40+
.map(o -> (Object) o.substring(SCOPE_ROLE_PREFIX.length()))
4141
.collect(Collectors.toList());
4242
}
4343
}

0 commit comments

Comments
 (0)
0