-
Notifications
You must be signed in to change notification settings - Fork 136
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
[ISSUE] 403:Forbidden instead of Read-Only View when has_change_permission() returns False #109
Comments
Here is the validation in NestedModelAdmin:
Here is the Django admin original check
Is read-only view disabled for NestedModelAdmin? |
Thanks for the report. I agree with you that it should return a read-only view instead of a 403, I will look into this soon |
I tried skipping that validation in NestedModelAdmin, and it returns a ChangeView instead of ReadOnlyView |
Please check if #110 fixes this issue :) |
I've updated the PR, please try it again. We should probably move the conversation there instead :) |
When
has_change_permission()
returnsFalse
it should return a Read-Only view,I'm getting 403:Forbidden instead.
Example code
Expected Behavior Get Read-only view
Result 403:Forbidden
The text was updated successfully, but these errors were encountered: