Closed (won't fix)
Project:
Rules
Version:
6.x-1.4
Component:
Rules Core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 May 2011 at 18:14 UTC
Updated:
8 Jul 2018 at 00:04 UTC
Jump to comment: Most recent
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
Comment #1
pbeakley commentedThat 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.
Comment #2
massud commentedI 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.
Comment #3
tr commentedDrupal 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.