Commit 5ae00939 authored by Earnie Boyd's avatar Earnie Boyd

#535192 Override node settings permission is not checked properly in

        xmlsitemap_node_form_alter().
parent 27091359
$Id$
XML sitemap 6.x-1, 2009-07-24
-----------------------------------
#535192 Override node settings permission is not checked properly in xmlsitemap_node_form_alter().
XML sitemap 6.x-1, 2009-07-24
-----------------------------------
#510076 The sitemap is not being submitted.
......
......@@ -106,7 +106,7 @@ function xmlsitemap_node_form_alter(&$form, &$form_state, $form_id) {
'#type' => 'fieldset',
'#title' => t('XML sitemap'),
'#collapsible' => TRUE,
'#access' => user_access('override node priority') || user_access('administer nodes'),
'#access' => user_access('override node settings') || user_access('administer nodes'),
'#weight' => 30,
);
}
......@@ -118,7 +118,7 @@ function xmlsitemap_node_form_alter(&$form, &$form_state, $form_id) {
'#description' => t('The default priority is %priority.', array('%priority' => $options[$default])),
'#default_value' => isset($node->priority_override) ? $node->priority_override : -2.0,
'#options' => $options,
'#access' => user_access('override node priority') || user_access('administer nodes'),
'#access' => user_access('override node settings') || user_access('administer nodes'),
);
}
}
......
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