Search in sources :

Example 1 with AuthorizationManager

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);
}
Also used : User(com.eaglegenomics.simlims.core.User) AuthorizationManager(uk.ac.bbsrc.tgac.miso.core.security.AuthorizationManager)

Aggregations

User (com.eaglegenomics.simlims.core.User)1 AuthorizationManager (uk.ac.bbsrc.tgac.miso.core.security.AuthorizationManager)1