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

[16.0][IMP] auth_saml: Allow admin/managers to edit User SAML information #652

Merged

Conversation

vincent-hatakeyama
Copy link
Contributor

As user in that group can already edit users, so it make sense to allow them to see and edit that information rather than restrict it to admin/system.

access_auth_saml_attribute_mapping,auth_saml_attribute_mapping,model_auth_saml_attribute_mapping,base.group_system,1,1,1,1
auth_saml_provider_erp_manager_access,auth_saml_provider_erp_manager_access,model_auth_saml_provider,base.group_erp_manager,1,0,0,0

Choose a reason for hiding this comment

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

I think we might still need this given that res.users.saml has a many2one to auth.saml.provider and one needs to select the provider when making/editing an entry

@aronabencherif aronabencherif force-pushed the 16.0-auth-saml-downgrade-res_user-access-right branch from b281457 to 5641a1b Compare May 21, 2024 15:36
@vincent-hatakeyama
Copy link
Contributor Author

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 16.0-ocabot-merge-pr-652-by-vincent-hatakeyama-bump-minor, awaiting test results.

OCA-git-bot added a commit that referenced this pull request May 28, 2024
Signed-off-by vincent-hatakeyama
@OCA-git-bot
Copy link
Contributor

@vincent-hatakeyama your merge command was aborted due to failed check(s), which you can inspect on this commit of 16.0-ocabot-merge-pr-652-by-vincent-hatakeyama-bump-minor.

After fixing the problem, you can re-issue a merge command. Please refrain from merging manually as it will most probably make the target branch red.

anoomk pushed a commit to ursais/server-auth that referenced this pull request Jun 7, 2024
* Add current time as password_write_date for admin user in demo, disabling the reset prompt - fixes OCA#652
vincent-hatakeyama and others added 2 commits June 12, 2024 10:46
Updated the signin method to reflect changes in similar method signin
from auth_oauth.
Without the changes, the ORM crashes with
psycopg2.errors.InvalidSavepointSpecification when trying to signin.

Fixes OCA#664
As user in that group can already edit users, so it make sense to allow
them to see and edit that information rather than restrict it to
admin/system.
@vincent-hatakeyama vincent-hatakeyama force-pushed the 16.0-auth-saml-downgrade-res_user-access-right branch from 5641a1b to 06b66a9 Compare June 12, 2024 09:00
@vincent-hatakeyama
Copy link
Contributor Author

/ocabot merge minor

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 16.0-ocabot-merge-pr-652-by-vincent-hatakeyama-bump-minor, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 940056d into OCA:16.0 Jun 12, 2024
9 checks passed
@OCA-git-bot
Copy link
Contributor

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

alexis-via pushed a commit to akretion/server-auth that referenced this pull request Nov 21, 2024
* Add current time as password_write_date for admin user in demo, disabling the reset prompt - fixes OCA#652
amh-mw pushed a commit to amh-mw/server-auth that referenced this pull request Jan 7, 2025
* Add current time as password_write_date for admin user in demo, disabling the reset prompt - fixes OCA#652
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