This will require a patch to the current version of Masquerade to work. Masquerade currently doesn't provide any form of "module_invoke_all" to identify Masquerade events.

See #1438036: Add Rules support and #1458418: Add masquerade events API.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost’s picture

Status: Active » Closed (duplicate)
andypost’s picture

Issue summary: View changes

Added other feature request to info.

MorinLuc0’s picture

Component: Code » Documentation
Issue summary: View changes
FileSize
1006 bytes

For anyone waiting for a rules support for if a user is masquerading.
Patch to be applied to the masquerade_extra ctools module.

yogaf’s picture

I just started "Masquerade Rules" sandbox. I hope to see this module become part of the masquerade extra suite.
Right now the patches from the project front page not working well.

yogaf’s picture

Status: Closed (duplicate) » Active
wjaspers’s picture

Its been quite awhile since I've put any changes into Masquerade Extras, or any drupal projects at all. As I have not been following the progress of Masquerade or D8 closely, I'm not aware of any hooks that may have been recently added to the Masquerade project. Just glancing over the most recent release candidate, I dont see that any specific to masquerade have been rolled-in. I will keep an eye on #1836516: Port Masquerade to D8 and rewrite + simplify it into a new 2.x series.

yogaf’s picture

Meantime can we commit code from "Masquerade Rules" sandbox and change the project front page rules section - patches there are outdated.
I'm sure it will be useful for others...
Just let me know and I'll submit a patch.

yogaf’s picture

Properties/Tokens

(current) User->Masquerading user
Rules

Logged user is masquerading
Specific user is masquerading
Specific user is being masqueraded

yogaf’s picture

Status: Active » Needs review

  • 6bd9011 committed on
    Issue [#1458334] by yogaf, MorinLuc0: Add Rules support
    
    - Rolling in...
wjaspers’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Documentation » Rules
Assigned: Unassigned » wjaspers
Status: Needs review » Fixed

Patched 7.x-2.x branch. Will backport to 1.x. Applied patch does not handle custom hooks as would be anticipated by related issue(s).

  • 5b4a514 committed on 7.x-1.x
    Issue [#1458334] by yogaf, MorinLuc0: Add Rules support
    
    - Rolling in...
wjaspers’s picture

Backported into 7.x-1.x as well.

Status: Fixed » Closed (fixed)

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