Closed (fixed)
Project:
Mass Contact
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2009 at 16:30 UTC
Updated:
14 May 2010 at 21:20 UTC
The Admin Role module (http://drupal.org/project/adminrole) creates a "superuser" role which is allocated all available permissions. Then, when new permissions are created when new modules are installed, the superuser is automatically given these permissions.
It seems that when a new category is created in Mass Contact, and a new permission created which decides whether a given user can send email under that category, Admin Role does not update the permissions of the superuser.
I'm guessing that this is because the permission is added outside of the module activation/deactivation process, which is where new permissions are usually created.
Comments
Comment #1
lyricnz commentedYes, this module should call adminrole_update_permissions() if adminrole is found to be enabled. It can either do this by adding it to a form:
or by calling it explicitly with a similar check for adminrole.
Comment #2
oadaeh commentedI've fixed this here: http://drupal.org/cvs?commit=361754.
Thank you both for the update.