There may be a situation when making a decision whether or not to allow someone to masquerade as someone else, some custom code need to be run. Therefore, I am proposing to introduce hook_masquerade so that other modules could participate in making decision to allow or not allow to masquerade. If the module implementing this hook returns false then the user is not allowed to masquerade.

Comments

battur’s picture

Title: Introduce hook_masquerade in masquerade contributed module » Allow custom modules to make a decision by introducing hook_masquerade.
Issue tags: +masquerade
battur’s picture

Version: 6.x-1.7 » 6.x-1.x-dev
avpaderno’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)
Issue tags: -masquerade

I am closing this feature request, as Drupal 6 is no longer supported. Please re-open it if you would like the feature implemented in the Drupal 7 or 8 version of the module.