Skip to content

[17.0][FIX] impersonate_login: read partner name with sudo on back to origin - #1083

Open
chaule97 wants to merge 2 commits into
OCA:17.0from
chaule97:17.0-fix-impersonate_login-back-to-origin
Open

chaule97 wants to merge 2 commits into
OCA:17.0from
chaule97:17.0-fix-impersonate_login-back-to-origin

Conversation

@chaule97

Copy link
Copy Markdown

Port of #1047 (18.0). When going back to the original user, the environment is still the impersonated user's one, which may not be allowed to read the original user's partner (for instance through a record rule). Reading the partner name for the log then raises an AccessError and the session stays impersonated. Adds a regression test; it fails without the fix.

Assisted-by: Claude Code (claude-opus-5-5)

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @Kev-Roche,
some modules you are maintaining are being modified, check this out!

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

Labels

mod:impersonate_login Module impersonate_login series:17.0

Projects

None yet