Skip to content
Snippets Groups Projects
Commit 26447150 authored by Maël AUDEON's avatar Maël AUDEON Committed by Delphine
Browse files

[Fix TRTL-206] Fix criterions whitelist in Groups API

parent f63034a6
No related branches found
No related tags found
1 merge request!1Feature/design/1
......@@ -75,6 +75,11 @@ import lombok.Setter;
@Service
public class GroupExternalService extends AbstractResourceClientService<GroupDto, GroupDto> {
private static final String IDENTIFIER_KEY = "identifier";
private static final String NAME_KEY = "name";
private static final String ENABLED_KEY = "enabled";
private static final String DESCRIPTION_KEY = "description";
private final GroupInternalRestClient groupInternalRestClient;
@Autowired
......@@ -128,7 +133,7 @@ public class GroupExternalService extends AbstractResourceClientService<GroupDto
@Override
public Collection<String> getAllowedKeys() {
return Arrays.asList("id", "name", "enabled", "description", LEVEL_KEY, CUSTOMER_ID_KEY);
return Arrays.asList(IDENTIFIER_KEY, NAME_KEY, ENABLED_KEY, DESCRIPTION_KEY, LEVEL_KEY, CUSTOMER_ID_KEY);
}
@Override
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment