Commit 71615968 authored by Tessa Bakker's avatar Tessa Bakker Committed by RenatoG

Issue #2199665 by Tessa Bakker, RenatoG, edin.dedagic, SpadXIII: Edit xml...

Issue #2199665 by Tessa Bakker, RenatoG, edin.dedagic, SpadXIII: Edit xml sitemap settings on own content
parent d322deed
...@@ -770,7 +770,7 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) { ...@@ -770,7 +770,7 @@ function xmlsitemap_add_form_link_options(array &$form, $entity, $bundle, $id) {
'#title' => t('XML sitemap'), '#title' => t('XML sitemap'),
'#collapsible' => TRUE, '#collapsible' => TRUE,
'#collapsed' => !$link['status_override'] && !$link['priority_override'], '#collapsed' => !$link['status_override'] && !$link['priority_override'],
'#access' => user_access('administer xmlsitemap') || xmlsitemap_link_bundle_access($bundle_info), '#access' => user_access('administer xmlsitemap') || user_access('use xmlsitemap') || xmlsitemap_link_bundle_access($bundle_info),
'#group' => 'additional_settings', '#group' => 'additional_settings',
'#attached' => array( '#attached' => array(
'js' => array( 'js' => array(
......
...@@ -131,7 +131,11 @@ function xmlsitemap_help($path, $arg) { ...@@ -131,7 +131,11 @@ function xmlsitemap_help($path, $arg) {
*/ */
function xmlsitemap_permission() { function xmlsitemap_permission() {
$permissions['administer xmlsitemap'] = array( $permissions['administer xmlsitemap'] = array(
'title' => t('Administer XML sitemap settings.'), 'title' => t('Administer XML sitemap settings'),
);
$permissions['use xmlsitemap'] = array(
'title' => t('Use XML sitemap'),
'description' => t('Users can change individually the default XML Sitemap settings.'),
); );
return $permissions; return $permissions;
} }
......
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