I use this theme function theme_role_delegation_delegate_roles_action_form(). It displays all roles even if user haven't access to delegate some role. We should add appropriate check for this.

Patch is attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alan-ps created an issue. See original summary.

Samfall’s picture

Thank you for this patch. I was very surprised when I noticed this same issue and was going to fix it myself before I checked here.

NWOM’s picture

Status: Needs review » Reviewed & tested by the community

Applies cleanly and works great. Thank you!

mforbes’s picture

Status: Reviewed & tested by the community » Needs review

This patch seems identical to the one at https://www.drupal.org/project/role_delegation/issues/2051669 which is older, so it seems like this should be closed as duplicate. Setting to "Needs review" in the meantime in case there is something I'm missing.

JeroenT’s picture