use of org.zalando.nakadi.domain.AdminResource in project nakadi by zalando.
the class AdminService method isAdmin.
public boolean isAdmin(final AuthorizationService.Operation operation) {
final List<Permission> permissions = getAdmins();
final Resource resource = new AdminResource(ADMIN_RESOURCE, ResourceAuthorization.fromPermissionsList(permissions));
return authorizationService.isAuthorized(operation, resource);
}
Aggregations