Skip to content

[19.0][FIX] impersonate_login: restrict admins with an implied Settings group - #1082

Open
chaule97 wants to merge 1 commit into
OCA:19.0from
chaule97:19.0-fix-impersonate_login-restrict-implied-admin
Open

chaule97 wants to merge 1 commit into
OCA:19.0from
chaule97:19.0-fix-impersonate_login-restrict-implied-admin

Conversation

@chaule97

Copy link
Copy Markdown

On 19.0, res.users.group_ids only holds the groups set directly on the user. With "Restrict Impersonation of 'Administration: Settings' Users" on, a user who gets Settings through another group (one that implies base.group_system) can still be impersonated. Check all_group_ids instead. 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:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants