Logically, when a user is unsubscribed from a group, or the user account is deleted, the OG roles are being revoked.

However, hook_og_role_revoke() is not invoked in these circumstances.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim’s picture

Status: Active » Needs review
FileSize
4.49 KB

Here's a patch that adds tests for both the grant and revoke hooks and fails in these two scenarios.

Status: Needs review » Needs work