Suppose the following scenario:
- There is an OG group with some roles assigned to users by OGUR (og_user_roles) module
- Create an action to assign a role to a user when he/she is promoted to group admin

Now when a user promoted to the group admin, his/her temporary roles assigned by OGUR become permanent. I guess the reason is that Rules saves all current user roles while some of them are temporarily assigned by OGUR.

Comments

pbeakley’s picture

Component: Rules Core » Rules Engine

That functionality is already built into OG User Roles: "default role for new administrators" under "default role assignments." There's also another module that lets you assign multiple default roles for new administrators. I guess I'm not sure why you need to use a Rule.

massud’s picture

I need to assign a global role for group administrators along with a "default role for new administrators". The roles assigned by OGUR (including "default role for new administrators") are only effective inside the group. So I use Rules to assign the global role.
I managed to do it by adding a php action code instead of using "Add user role" action but I think this should be addressed in the implementation of "Add user role" action.

tr’s picture

Component: Rules Engine » Rules Core
Issue summary: View changes
Status: Active » Closed (won't fix)

Drupal 6 end of life was 24 Feb 2016. Drupal 6 and Rules 6.x-1.x are no longer supported as of that date, and no bugs with those versions will be investigated or fixed.

If this issue is still a problem in the Drupal 7 or Drupal 8 version of Rules, please open a new issue with complete details of how to reproduce the bug.