This module currently implements join and leave role actions as direct sql queries on the database. This means that hook_user is not called when roles are added or removed, which is not desirable.

Comments

greg.1.anderson’s picture

Status: Active » Needs review
StatusFileSize
new3.36 KB

Here is a patch that calls user_save to add and remove roles.

greg.1.anderson’s picture

Priority: Normal » Minor
Status: Needs review » Needs work

I am switching to the sudo module instead, as it fits my use-case better. Someone else will need to drive this to completion if it is desired; please feel free to close if not wanted. Setting to 'needs work', as a Drupal-7 port is still needed.

francoud’s picture

I'll take a look and try to commit.. thank you!

francoud’s picture

Assigned: Unassigned » francoud
xqbzzr’s picture

Issue summary: View changes

Has this ever been fixed?
I am having issues with User Badge role, as this module will not assign badges on joining roles.