When submodule 'Workflow Admin UI' is disabled (which is preferred in a stable production environment), and a role is created, then hook_user_role_insert() is not called, since it is local to Admin UI module..

The hook must be moved to the main module.

Comments

johnv’s picture

Status: Active » Fixed

This is fixed in this commit by moving the hook to the main module.

johnv’s picture

Oops, this causes a WSOD when adding a role with Workflow Admin UI disabled.
It also revealed another problem. Both are addressed in a follow-up issue #2228457: Do NOT enable all roles for Transitions, upon enabling Workflow UI module.

Status: Fixed » Closed (fixed)

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