I recently upgraded my code base from Drupal v5.7 to v5.8 and the OG User Roles module hasn't been working as advertised since the upgrade.

I've been able to reproduce this problem on my production, staging, and a fresh site with a clean install.

Problem:
I have a number of Organic Groups. Each has one (or more) administrators. I use OG User Roles to give these administrators a "Group Admin" role as long as they're within the context of the group. One of the permissions the Group Admin has is "adminster nodes". After the recent upgrade, group administrators were no longer able to publish nodes.

I did enable the og_user_test module and found that the roles were being assigned. The testPerm field, for example, read "Roles Returned: (authenticated user,group admin)". For some reason, the "group admin" role is not being respected by the Drupal rights system.

"Clear the user_access() and cache_menu caches for user?" is enabled.

I've tested with multiple different users and different groups.

Comments

somebodysysop’s picture

You have to re-patch the user.module with the og_user_roles.user.module.5.2.patch after the upgrade. Just a guess, but this happens to me every time I upgrade.

kmillecam’s picture

Status: Active » Fixed

Doh!

That was it.

Thanks for the nudge SombodySysop.

Kevin

Anonymous’s picture

Status: Fixed » Closed (fixed)

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