From 92d256d7cd120172baa28720d98a210ed06fff30 Mon Sep 17 00:00:00 2001 From: Pierre Vriens <pierre.vriens@inpetto.be> Date: Wed, 11 Feb 2015 21:33:08 +0100 Subject: [PATCH] #2257469-12 Fix permissions to access Default chart configuration --- charts.module | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/charts.module b/charts.module index 23f1938..8e1279d 100644 --- a/charts.module +++ b/charts.module @@ -26,7 +26,7 @@ function charts_menu() { 'description' => 'Set the default library, behavior, and style of charts.', 'page callback' => 'drupal_get_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', ); $items['charts/examples'] = array( @@ -158,11 +158,12 @@ function charts_library() { function charts_permission() { return 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( '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'))), ), ); } -- GitLab