use of uk.ac.bbsrc.tgac.miso.core.security.AuthorizationManager in project miso-lims by miso-lims.
the class ListItemsPageWithAuthorization method writeConfiguration.
@Override
protected final void writeConfiguration(ObjectMapper mapper, ObjectNode config) throws IOException {
AuthorizationManager manager = authorizationManager.get();
User user = manager.getCurrentUser();
config.put("isAdmin", user.isAdmin());
config.put("isInternal", user.isInternal());
writeConfigurationExtra(mapper, config);
}
Aggregations