[KEYCLOAK-4341] - Resources are not properly exported when exporting authorization settings

This commit is contained in:
Pedro Igor 2017-01-31 13:10:25 -02:00
parent 2990703aeb
commit 57c74e3f39

View file

@ -371,7 +371,7 @@ public class ExportUtils {
Set<Resource> policyResources = policy.getResources();
if (!policyResources.isEmpty()) {
List<String> resourceNames = scopes.stream().map(Scope::getName).collect(Collectors.toList());
List<String> resourceNames = policyResources.stream().map(Resource::getName).collect(Collectors.toList());
config.put("resources", JsonSerialization.writeValueAsString(resourceNames));
}