-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Multiple custom permissions and default_detail #6427
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
Comments
Hi @jbma. Thanks for the report. The issue here is that
I see no reason why we shouldn't be able to add a property that pulled the message from the composed permissions, following the usual short-circuiting rules for boolean logic. (Tests and docs.) |
Hi, thank's for the feedback 🙌 |
Hi, any updates on this issue? Maybe you have any implementation ideas? |
#6502 Looks like it's been sitting for a while, any plans on pushing it through? Would love to have this issue fixed. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
A reasonable approach here would be to undocument combining permission classes, comment them as informally deprecated. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Uh oh!
There was an error while loading. Please reload this page.
Checklist
master
branch of Django REST framework.Steps to reproduce
I've two custom permissions :
They are added into a view like that:
permission_classes = (PermissionA&PermissionB,)
Expected behavior
The view should displays "Custom Message A"
Actual behavior
The view displays "You do not have permission to perform this action."
As soon as I change the
permission_classes
toPermissionA
orPermissionB
the custom message is displayedThe text was updated successfully, but these errors were encountered: