This commit is contained in:
Trent Hensler 2018-03-01 23:32:17 -08:00
parent 6eb7e7a558
commit 634917d4c4

View File

@ -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;