summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhass2008-04-18 21:51:35 (GMT)
committer hass2008-04-18 21:51:35 (GMT)
commit68102149572f5f9f342679119cb4c0ac13ccaf6b (patch)
tree45fa7e3c111cb0cf96802502b5b40c603c59f7b4
parenta00f89cf9c7811e117ac042dd2e81aaa57760d16 (diff)
#232546: Separate permission for GA configuration
-rw-r--r--googleanalytics.module6
1 files changed, 5 insertions, 1 deletions
diff --git a/googleanalytics.module b/googleanalytics.module
index 3d76a20..3eb7157 100644
--- a/googleanalytics.module
+++ b/googleanalytics.module
@@ -17,6 +17,10 @@ function googleanalytics_help($section) {
}
}
+function googleanalytics_perm() {
+ return array('administer google analytics');
+}
+
function googleanalytics_menu($maycache) {
$items = array();
if ($maycache) {
@@ -26,7 +30,7 @@ function googleanalytics_menu($maycache) {
'description' => t('Configure the settings used to generate your Google Analytics tracking code.'),
'callback' => 'drupal_get_form',
'callback arguments' => 'googleanalytics_admin_settings_form',
- 'access' => user_access('administer site configuration'),
+ 'access' => user_access('administer google analytics'),
'type' => MENU_NORMAL_ITEM,
);
}