Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
when masqueraded users make node revisions, the author of those revisions is the fake user and not the real one. It should be set to "real user" or "real user masqueraded by fake user", is that possibile?
Thanks, bye
Maurizio
Comments
Comment #1
mauriziopinotti CreditAttribution: mauriziopinotti commentedfor anyone iterested in a working solution for that issue I added in my custom module this code:
Altering database directly is not a good idea but AFAIK there's no hook to edit revision uid, here is the relevant node.module part in node_save() function:
The revision uid is set from current user object.
Comment #2
nvahalik CreditAttribution: nvahalik at Code and Salt commentedThis is what Masquerade does. It allows you to assume the identity of another user on the site.