if (!content.isVisible() && !isBrowserInterface(request.getSession())) {
throw new HttpErrorException(404, "No content of name/id " + contentKey, path.getDatabaseKey());
}
}
else {
WGLanguage lang = langBehaviour.requestSelectDatabaseLanguage(database, request);
content = database.getDummyContent(lang.getName());
}
// Test browsability of content
if (!content.isDummy() && getBrowsingSecurity(database) <= BrowsingSecurity.NO_BROWSING) {
throw new HttpErrorException(java.net.HttpURLConnection.HTTP_FORBIDDEN, "Browsing not allowed in database '" + path.getDatabaseKey() + "'", path.getDatabaseKey());