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

Resource.save() assigns permissions #11564

Open
jacobtylerwalls opened this issue Oct 22, 2024 · 0 comments
Open

Resource.save() assigns permissions #11564

jacobtylerwalls opened this issue Oct 22, 2024 · 0 comments

Comments

@jacobtylerwalls
Copy link
Member

The Resource proxy model save() method has code predating the 7.6 permissions framework that appears to do what the principal user functionality now does. If that's so, we should look into removing it to make sure we're not unnecessarily making changes to object permissions.

try:
for perm in (
"view_resourceinstance",
"change_resourceinstance",
"delete_resourceinstance",
):
assign_perm(perm, user, self)
except NotUserNorGroup:
pass

cc/ @aarongundel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant