Download & Extend

Improve maintenance handling of default group member/admin roles

Project:OG User Roles
Version:6.x-4.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

Adding a group member or group admin, when a default role is set, automatically adds the default role to that user's group roles. If you then go and change the default role, the previously assigned default group role is not replaced with the new default role for existing users. Furthermore, when an admin user is demoted to a regular user, the old default role (in the og_user_roles table) is not removed. There is no way to remove the old role in the UI, and that user continues to enjoy the privileges of that role.

I'm not sure what the best approach is to fix this. The og_user_roles table makes no distinction between roles assigned automatically by default, and roles assigned manually. If you just remove all og_user_roles matching the former default role, you will remove manually assigned roles of that type. I cannot think of a solution short of adding a field to the og_user_roles table.

Comments

#1

Title:Group member and admin roles not reassigned when default roles are changed» Improve maintenance handling of default group member/admin roles
Category:bug report» feature request
Priority:minor» normal

I think this is explained in the settings form. At least, it's not a bug.

#2

Category:feature request» task

Cross-referencing #614024: Default roles are not applied to existing group members/admins, since both issues seem to clash with each other.

#3

Status:active» closed (duplicate)

Thanks for taking the time to report this issue.

However, marking as duplicate of #614024: Default roles are not applied to existing group members/admins.
You can follow up on that issue to track its status instead.

nobody click here