Repository navigation
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 objFor list actions you will need to overhead the |
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.
All reactions