You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Out of the box, DRF just runs permission_classes serially, but there are 3rd-party packages that allow you to compose permissions, e.g. https://github.com/caxap/rest_condition .
EDIT: Ah, looks like DRF does support composable permissions in recent releases.
For combining authorization, in many cases it would be simpler to do something like:
Instead of having to define a new authorization class that combines the two in a less declarative manner.
Inspired by the
permission_classes
functionality in DRF.The text was updated successfully, but these errors were encountered: