Skip to content

Commit 1254ba2

Browse files
committed
增加options转换
1 parent 2a4011a commit 1254ba2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public AuthenticationBuilder permission(String permissionJson) {
7979
SimplePermission permission = new SimplePermission();
8080
permission.setId(jsonObject.getString("id"));
8181
permission.setName(jsonObject.getString("name"));
82+
permission.setOptions(jsonObject.getJSONObject("options"));
8283
JSONArray actions = jsonObject.getJSONArray("actions");
8384
if (actions != null) {
8485
permission.setActions(new HashSet<>(actions.toJavaList(String.class)));

0 commit comments

Comments
 (0)