Skip to content

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

Open
RicardCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-impersonate_login-back-access
Open

RicardCForgeFlow wants to merge 1 commit into
OCA:18.0from
ForgeFlow:18.0-fix-impersonate_login-back-access

Conversation

@RicardCForgeFlow

Copy link
Copy Markdown

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 (e.g. through partner record rules). Reading the partner name for the log then raises an AccessError and the session stays impersonated.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

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

@RicardCForgeFlow

Copy link
Copy Markdown
Author

Tests failing until #1045 is merged

@AaronHForgeFlow AaronHForgeFlow 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.

👍

@MiquelRForgeFlow MiquelRForgeFlow 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.

Please rebase.

@RicardCForgeFlow
RicardCForgeFlow force-pushed the 18.0-fix-impersonate_login-back-access branch from 66019a0 to a12953a Compare October 21, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants