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

fix: Check permissions methods expects any model, not a user model only #270

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

bellini666
Copy link

Those checks were wrongly typed as it as those methods accept any model. It also makes no sense to limit the objects to the user as it's the user itself checking for a permission in a given object.

Reference: https://docs.djangoproject.com/en/5.1/ref/contrib/auth/#available-authentication-backends

Copy link
Owner

@sbdchd sbdchd left a comment

Choose a reason for hiding this comment

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

Thanks!

@kodiakhq kodiakhq bot merged commit 700fb6a into sbdchd:main Oct 7, 2024
2 checks passed
@bellini666 bellini666 deleted the fix_check_has_perm branch October 7, 2024 12:11
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.

2 participants