private void writeConfiguration(JsonWriter json, ComponentDto component, UserSession userSession) {
boolean isAdmin = userSession.hasProjectPermissionByUuid(UserRole.ADMIN, component.projectUuid());
Locale locale = userSession.locale();
json.name("configuration").beginArray();
for (ConfigPage page : projectConfiguration.getConfigPages(component, userSession)) {
<BUG>page.write(json);
}</BUG>
if (isAdmin) {
List<ViewProxy<Page>> configPages = views.getPages(NavigationSection.RESOURCE_CONFIGURATION, component.scope(), component.qualifier(), component.language(), null);
for (ViewProxy<Page> page : configPages) {

private void writeConfiguration(JsonWriter json, ComponentDto component, UserSession userSession) {
boolean isAdmin = userSession.hasProjectPermissionByUuid(UserRole.ADMIN, component.projectUuid());
Locale locale = userSession.locale();
json.name("configuration").beginArray();
for (ConfigPage page : projectConfiguration.getConfigPages(component, userSession)) {
json.beginObject()
.prop("url", page.url())
.prop("name", page.name())
.endObject();
}
if (isAdmin) {
List<ViewProxy<Page>> configPages = views.getPages(NavigationSection.RESOURCE_CONFIGURATION, component.scope(), component.qualifier(), component.language(), null);
for (ViewProxy<Page> page : configPages) {
