}
}
if (!check) {
SmallContentType contentType = (SmallContentType) this.getContentManager().getSmallContentTypesMap().get(action.getContentTypeCode());
String typeDescr = contentType != null ? contentType.getCode() : action.getContentTypeCode();
action.addFieldError("contentTypeCode", action.getText("error.content.contentType.userNotAllowed", typeDescr));
}
} catch (Throwable t) {
ApsSystemUtils.logThrowable(t, this, "getAllowedContentTypes", "Error checking content type authorization");
throw new RuntimeException("Error extracting allowed content types", t);
}