Format
This commit is contained in:
parent
6eb7e7a558
commit
634917d4c4
@ -34,15 +34,15 @@ public class PermissionsMapTypeAdapter implements JsonDeserializer<Map<Permissab
|
||||
if (permissable == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
// Second level is the map between action -> access
|
||||
Map<PermissableAction, Access> accessMap = new HashMap<>();
|
||||
Map<PermissableAction, Access> accessMap = new HashMap<>();
|
||||
for (Map.Entry<String, JsonElement> entry2 : entry.getValue().getAsJsonObject().entrySet()) {
|
||||
PermissableAction permissableAction = PermissableAction.fromString(entry2.getKey());
|
||||
Access access = Access.fromString(entry2.getValue().getAsString());
|
||||
accessMap.put(permissableAction, access);
|
||||
}
|
||||
permissionsMap.put(permissable, accessMap);
|
||||
permissionsMap.put(permissable, accessMap);
|
||||
}
|
||||
|
||||
return permissionsMap;
|
||||
|
Loading…
Reference in New Issue
Block a user