Hi,

We have many users on our site who have the 'access administration pages' permission. Many, in their admin page view, may only be able to see 'create content' and other types of content tasks that they have access to.

Only one or two users, on the other hand, have the 'administer site configuration' permission.

Would it be possible to change the jQuery Map Hilight admin link to require 'administer site configuration' permissions, vs the currently required 'access administration pages' permission? It's currently the only module on our site that pops up on all our users' admin screens, though they shouldn't really have access to administer site-wide jQuery map configurations, and yet it would be unreasonable to take away their ability to access *any* administration pages, since they can do some small admin tasks.

Here's a patch that would make the required changes:

diff --git a/jq_maphilight.module b/jq_maphilight.module
index 0c1f155..6a65dbb 100644
--- a/jq_maphilight.module
+++ b/jq_maphilight.module
@@ -62,7 +62,7 @@ function jq_maphilight_menu() {
     'page callback' => 'drupal_get_form',
     'page arguments' => array('jq_maphilight_admin_settings'),
     'access callback' => 'user_access',
-    'access arguments' => array('access administration pages'),
+    'access arguments' => array('administer site configuration'),
     'type' => MENU_NORMAL_ITEM,
   );
   return $items;

Comments

WorldFallz’s picture

Status: Active » Fixed

weird... this was done already: #1139236: Admin Menu item uses "incorrect" permission

committed again (it should appear in the dev snapshot within 12 hours)-- lets hope it sticks this time, lol.

ditcheva’s picture

Thanks so much!!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.