Skip to content
Snippets Groups Projects
Commit 92d256d7 authored by Pierre Vriens's avatar Pierre Vriens
Browse files

#2257469-12 Fix permissions to access Default chart configuration

parent 5853af2a
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ function charts_menu() { ...@@ -26,7 +26,7 @@ function charts_menu() {
'description' => 'Set the default library, behavior, and style of charts.', 'description' => 'Set the default library, behavior, and style of charts.',
'page callback' => 'drupal_get_form', 'page callback' => 'drupal_get_form',
'page arguments' => array('charts_default_settings_form'), 'page arguments' => array('charts_default_settings_form'),
'access arguments' => array('set default settings for charts'), 'access arguments' => array('administer charts'),
'file' => 'includes/charts.pages.inc', 'file' => 'includes/charts.pages.inc',
); );
$items['charts/examples'] = array( $items['charts/examples'] = array(
...@@ -158,11 +158,12 @@ function charts_library() { ...@@ -158,11 +158,12 @@ function charts_library() {
function charts_permission() { function charts_permission() {
return array( return array(
'administer charts' => array( 'administer charts' => array(
'title' => t('Configure chart settings'), 'title' => t('Administer Charts'),
'description' => t('Visit the <a href="!url">Default chart configuration</a> (used for Charts administration)', array('!url' => url('admin/config/content/charts'))),
), ),
'access example charts' => array( 'access example charts' => array(
'title' => t('Access example charts'), 'title' => t('Access example charts'),
'description' => t('Grants access to the <a href="!url">charts examples</a> page. Use this page for testing chart functionality.', array('!url' => url('charts/examples'))), 'description' => t('Visit the <a href="!url">Charts examples</a> (used for Charts testing and demo)', array('!url' => url('charts/examples'))),
), ),
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment