Commit 64638825 authored by Dave Reid's avatar Dave Reid

#911842 by Dave Reid | broncomania: Fixed 'access content' required to view sitemap.xml.

parent 216c174b
......@@ -27,15 +27,6 @@ function xmlsitemap_requirements($phase) {
}
if ($phase == 'runtime') {
if (!user_access('access content', drupal_anonymous_user())) {
$requirements['xmlsitemap_access'] = array(
'title' => $t('XML sitemap anonymous content access'),
'value' => $t('Access denied'),
'description' => $t('In order to allow search engines to view the XML sitemap and content on your site, the anonymous user role must have the <a href="@perm-link"><em>View published content</em></a> permission.', array('@perm-link' => url('admin/people/permissions/' . DRUPAL_ANONYMOUS_RID, array('fragment' => 'module-node')))),
'severity' => REQUIREMENT_ERROR,
);
}
// Check that the base directory and all its subdirectories are writable.
$requirements['xmlsitemap_directory'] = array(
'title' => $t('XML sitemap cache directory'),
......
......@@ -197,7 +197,7 @@ function xmlsitemap_menu() {
$items['sitemap.xml'] = array(
'page callback' => 'xmlsitemap_output_chunk',
'access arguments' => array('access content'),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
'file' => 'xmlsitemap.pages.inc',
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment