Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] impersonate_login: Restrict Admin settings impersonation #730

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

toita86
Copy link

@toita86 toita86 commented Nov 15, 2024

This PR adds a configuration setting (restrict_impersonate_admin_settings) to exclude users with "Administration: Settings" rights to be impersonated. When enabled, only non-administrative users can be impersonated.

@OCA-git-bot
Copy link
Contributor

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

@toita86 toita86 force-pushed the 14.0-IMP-impersonate_login-toita86 branch 2 times, most recently from d9415df to 6739552 Compare November 15, 2024 11:49
@francesco-ooops
Copy link
Contributor

@Kev-Roche what do you think? we don't want users to install modules while impersonating other users, but it can be made more generic/extendable if you wish.

@Kev-Roche
Copy link
Contributor

It is a good idea ! As you add a new feature, a short test will be nice.

@toita86 toita86 force-pushed the 14.0-IMP-impersonate_login-toita86 branch from 6739552 to a028010 Compare November 15, 2024 15:50
@toita86 toita86 force-pushed the 14.0-IMP-impersonate_login-toita86 branch from a028010 to 5895660 Compare November 15, 2024 16:06
@toita86
Copy link
Author

toita86 commented Nov 15, 2024

@Kev-Roche tests added, if you have any concerns or suggestions for improvement, please let me know.

Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

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

Functional ok!

Copy link
Contributor

@Kev-Roche Kev-Roche left a comment

Choose a reason for hiding this comment

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

LGTM, thanks !

Copy link

@aleuffre aleuffre left a comment

Choose a reason for hiding this comment

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

Code review, LGTM

@francesco-ooops
Copy link
Contributor

@Kev-Roche can you please merge?

@Kev-Roche
Copy link
Contributor

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 14.0-ocabot-merge-pr-730-by-Kev-Roche-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit f8cefc6 into OCA:14.0 Nov 19, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at a2997f5. Thanks a lot for contributing to OCA. ❤️

@toita86 toita86 deleted the 14.0-IMP-impersonate_login-toita86 branch November 26, 2024 15:51
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