Create a separate permission for XML Sitemap Settings
| Project: | XML sitemap |
| Version: | 6.x-1.1 |
| Component: | xmlsitemap.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Currently the only way to access the XML sitemap settings from the Site configuration menu is to allow the "administer site configuration" permission. This permission obviously gives much more control over the site than many would like to give.
The problem is that many website owners want to use the Google Webmaster tools etc. That requires the website owner to pass along the sitemap information from their account that is then needed to be input which is something website owners should be able to do themselves.
The frequency and of sitemap submission should also be available for change should an owners website traffic increase significantly, yet currently they have no option to do so unless they have the "administer site configuration" permission. The same can be said for manual submission.
Can you please implement a separate permission that doesn't use the administer site configuration permission?
Jason

#1
You mean like the existing 'administer xmlsitemap' permission?
#2
Thanks for the reply David, sorry it took me a while to respond. If 'administer xmlsitemap' was actually used for the permission it would be great however in the xmlsitemap.module code, starting on line 114 we have the following:
/**
* Implementation of hook_menu().
*/
function xmlsitemap_menu() {
$items = array();
$access_config = array('administer site configuration');
$access_content = array('access content');
$items['admin/settings/xmlsitemap'] = array(
'title' => 'XML sitemap',
'description' => 'Configure the XML sitemap.',
'page callback' => 'drupal_get_form',
'page arguments' => array('xmlsitemap_settings'),
'access arguments' => $access_config,
'file' => 'xmlsitemap.admin.inc',
);
The $access_config variable is using the 'administer site configuration' permission instead of the 'administer xmlsitemap'.
Edit: Where exactly is the existing 'administer xmlsitemap' permission? Underneath the "xmlsitemap module" heading in user permissions I only have 'override node settings' and 'override profile settings'.
Jason
#3
#4
That's actually code from the 6.x-1.x version, so you've obviously got a mix of versions being used. You created an issue for the 6.x-2.x-dev version.
#5
Sorry, my mistake David. I accidentally selected 6.x-2.x-dev instead of the 6.x-1.x version.
Does this mean that for the current recommended version, being 6.x-1.1 for Dupal 6, there is currently no separate permission to access the XML sitemap settings? Or am I overlooking something? I am guessing from what you have said above that it has been resolved in the 6.x-2.x-dev version?
If that is the case, I can stick with my short term solution of changing the $access_config variable to using another permission that the admin has been granted.
Jason
#6
Changing issue to version 6.x-1.1