Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix anonymous access for DjangoModelPermissionsOrAnonReadOnly#9315

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

farnswj1
Copy link

This pull request fixes anonymous read-only access for theDjangoModelPermissionsOrAnonReadOnly class inpermissions.py as mentioned in issue#9299.

If the user is authenticated, it will run the thehas_permission method defined inDjangoModelPermissions since it's the parent class. If the user is not authenticated, then the user will have permissiononly if the method is safe. (GET, HEAD, or OPTIONS)

@auvipy
Copy link
Member

Is it possible to add some tests to verify this?

@farnswj1
Copy link
Author

Is it possible to add some tests to verify this?

Yes. I've included them in the latest commit

@tomchristie
Copy link
Member

tomchristie commentedMar 21, 2024
edited
Loading

Superseeded by#9332, which instead outright reverts the change.

farnswj1 reacted with heart emoji

@WillNilges
Copy link

👋🏻 Hey there, apologies for the necrobump, but my project was looking forward to the fix from#8009 for release 3.15 so that we can point back at mainline. Are there any plans to merge this/can we re-open this PR?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@farnswj1@auvipy@tomchristie@WillNilges

[8]ページ先頭

©2009-2025 Movatter.jp