Skip to content

[17.0] impersonate_login: acl fix#951

Open
len-foss wants to merge 2 commits into
OCA:17.0from
lambdao-dev:17.0-acl
Open

[17.0] impersonate_login: acl fix#951
len-foss wants to merge 2 commits into
OCA:17.0from
lambdao-dev:17.0-acl

Conversation

@len-foss

Copy link
Copy Markdown
Contributor

This cherry-picks #913 and adapt #907 on top of it to address problems pointed in #902

Currently, the module is very useful for admins/debugging to check things as a user, especially in highly secure environment where you can't just pick up user passwords (enforced 2FAs, etc). However, these ACL issues break a number of basic user flows (like simply uploading an attachment in a message), actually rendering this very unreliable.

Kev-Roche and others added 2 commits June 16, 2026 07:49
Avoid rewriting create_uid/write_uid on ir.attachment during impersonation.
Temporary report/email attachments may be created without res_model/res_id and
core access checks rely on creator ownership for read access in that case.

@Kev-Roche Kev-Roche left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinkhao kevinkhao left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants