8000 [14.0][FIX] web_ir_action_act_*: add/fix access rights by aleuffre · Pull Request #2466 · OCA/web · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[14.0][FIX] web_ir_action_act_*: add/fix access rights #2466

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

Merged
merged 1 commit into from
Jul 1, 2023

Conversation

aleuffre
Copy link
Contributor
@aleuffre aleuffre commented Mar 23, 2023

Squashes the warning

odoo.modules.loading: The model ir.actions.act_view_reload has no access rules, consider adding one. E.g. access_ir_actions_act_view_reload,access_ir_actions_act_view_reload,model_ir_actions_act_view_reload,base.group_user,1,0,0,0

@@ -0,0 +1,2 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
crud_ir_actions_act_view_reload, 8000 access_ir_actions_act_wiew_reload,model_ir_actions_act_view_reload,,1,1,1,1
Copy link
Member
@tarteo tarteo Mar 24, 2023

Choose a reason for hiding this comment

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

Does the user need write, delete and create rights?

Copy link
Contributor Author
@aleuffre aleuffre Mar 24, 2023

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

@Tardo, you agreed with @tarteo but your link shows full CRUD rights like this PR, is there a typo in your comment ?

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, the main difference is the group :) ... No Group = All users can do the operations.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Tardo, aaaah I missed that

Copy link
Contributor Author
@aleuffre aleuffre Mar 31, 2023

Choose a reason for hiding this comment

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

so, do you want me to add the group like in base Odoo? Maybe on all three modules?

Edit: done

Copy link
Member

Choose a reason for hiding this comment

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

Yes, i think that this change should be made on all modules. Thanks!

Add or fix access rights for actions, like in base Odoo
@aleuffre aleuffre force-pushed the 14.0-act_view_reload_security branch from f3c6da9 to f40dd6f Compare March 31, 2023 15:40
@aleuffre aleuffre changed the title [14.0][FIX] web_ir_action_act_view_re 8000 load: add access rights [14.0][FIX] web_ir_action_act_*: add/fix access rights Mar 31, 2023
Copy link
Member
@Tardo Tardo 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!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@aleuffre
Copy link
Contributor Author

@OCA/web-maintainers

@hbrunn
Copy link
Member
hbrunn commented Jul 1, 2023

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 14.0-ocabot-merge-pr-2466-by-hbrunn-bump-patch, awaiting test results.

@OCA-git-bot
Copy link
Contributor

@hbrunn The merge process could not be finalized, because command git push origin 14.0-ocabot-merge-pr-2466-by-hbrunn-bump-patch:14.0 failed with output:

To https://github.com/OCA/web
 ! [rejected]          14.0-ocabot-merge-pr-2466-by-hbrunn-bump-patch -> 14.0 (fetch first)
error: failed to push some refs to 'https://***@github.com/OCA/web'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

@OCA-git-bot OCA-git-bot merged commit b36fd5f into OCA:14.0 Jul 1, 2023
@OCA-git-bot
Copy link
Contributor

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

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.

6 participants
0