Replies: 1 comment
-
Currently we do not have an easy solution to support drop in object permissions like DRF however if you create a mixin you can do the object checks each instance. class CheckObjectPermissions:
def get_object(self, **kwargs) -> Model:
obj = super().get_object(**kwargs)
# do your object permission checks here throw regular permission error if needed.
return obj For list actions you will need to overhead the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions