Closed (fixed)
Project:
Events Log Track
Version:
5.0.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2025 at 18:06 UTC
Updated:
15 Apr 2026 at 15:15 UTC
Jump to comment: Most recent
Comments
Comment #4
solideogloria commentedIt looks like the commits were added to the 4.0.x branch instead of to the issue-specific branch '3528891-masquerade-support'. I'm not able to pull the changes, because the 4.0.x branch tracks origin/4.0.x
Comment #6
solideogloria commentedI'm merging the changes into the issue branch.
https://git.drupalcode.org/issue/events_log_track-3528891/-/merge_reques...
Comment #7
solideogloria commentedWhen it comes to my thoughts on the feature, I was just about to try creating a custom module to do just this. I'm all for it, as masquerading is something that should be easy to audit.
Comment #8
solideogloria commentedI would suggest some changes, however. Being able to masquerade doesn't necessarily mean you are an admin. I think the code should use "user" and "target_user", the same way the Masquerade module does.
Comment #10
solideogloria commentedMR !79 is now the correct MR to work on, as it's from the issue branch into the project branch.
Comment #11
solideogloria commentedPlease review MR !79
Comment #12
solideogloria commentedComment #13
solideogloria commentedI will also note that I've never used this module before, and I have not tested it. If this feature gets added, I will have a reason to use it.
Comment #14
tregonia commentedFound that the handlers were overriding the
confighandlers, but setting the records as typeuser. Updated the instances to usermasquerade.Comment #15
tregonia commented@solideogloria
Setting the handlers to
usermakes sense, but would need the module to refactor the$handlers['user']to not override the existing user module; plus it would need a dependency on theevent_log_track_usermodule. Instead, these have been updated to isolate them just to Masquerade.Comment #16
smustgrave commentedCan this be converted to OOP hooks for the 5.0.x branch. With test coverage please
Comment #19
smustgrave commentedI went ahead and merged to 4.0.x since it was done. Then opened a separate MR for 5.0.x with test coverage