Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
xmlsitemap's hook_perm defines the permissions as
function xmlsitemap_perm() {
return array('override node settings', 'override profile settings');
}
But in xmlsitemap_node_form_alter, xmlsitemap_node checks with this:
'#access' => user_access('override node priority') || user_access('administer nodes'),
Comment | File | Size | Author |
---|---|---|---|
#3 | issue-535192.patch | 1.31 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedThanks for the report. The question now is, should I leave 'override node settings' in hook_perm and change the 'override node priority' to match it; or should I change 'override node settings' to 'override node priority' and create an update to modify the permission table. The first option is easier the second option isn't that bad and it is the one I think I prefer. Dave?
EDIT: One con with the second plan is a change to translatable strings.
Comment #2
apadernoI would change the "override node priority"; the other one is more generic, and it could be used even when the user is allowed to override other XML sitemap settings for the node. Even if the module would not define any new settings for the node, there could be a third-party module that extends XML sitemap node, and could use the permission already existing.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedThe attached patch has been committed to CVS.