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

lyricnz’s picture

Yes, 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:

if(module_exists('adminrole')) {
  $form['#submit'][] = 'adminrole_update_permissions';
}

or by calling it explicitly with a similar check for adminrole.

oadaeh’s picture

Category: bug » support
Status: Active » Fixed

I've fixed this here: http://drupal.org/cvs?commit=361754.

Thank you both for the update.

Status: Fixed » Closed (fixed)

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