Merge pull request #3814 from pedroigor/authz-export-fixes
Authz export fixes
This commit is contained in:
commit
0c16a15b7d
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -801,7 +801,7 @@ public class ModelToRepresentation {
|
||||
representation.setType(model.getType());
|
||||
representation.setDecisionStrategy(model.getDecisionStrategy());
|
||||
representation.setLogic(model.getLogic());
|
||||
representation.setConfig(model.getConfig());
|
||||
representation.setConfig(new HashMap<>(model.getConfig()));
|
||||
|
||||
return representation;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user