-
Notifications
You must be signed in to change notification settings - Fork 24
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
Per-actions Permissions. #5
Comments
Decorators take various kwargs.
🔨: Using |
Hello Carlton, |
Hi @tissieres. I'm still working on the details of the desired API here. Normally I'd be very grateful for input but I do want to handle this one myself. A first pass would be to implement a We're still at the early stage here so there's no wrong answers yet. I know that's not very specific but I hope it helps. |
No problem. I will test some approaches on my side and if I find something really elegant, I'll come back to you. Thanks for neapolitan, fun project! |
Thanks! Let me know what you come up with! |
That was simple finally:
I also added a check of the permissions in the |
Yes, wrapping the view callbacks in |
Scenario:
Needs a hook into
ModelView.get_urls()
since parsing the end-list to wrap the view callbacks isn't fun.But the most vanilla approach is to wrap the view, rather than add a DRF-style
check_permissions()
hook on the view class itself.The text was updated successfully, but these errors were encountered: