dfunckt / django-rules

Awesome Django authorization, without the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is it possible to have DRF list view only return objects for which the user has permission?

Routhinator opened this issue · comments

I see the docs say that the default permission mixin does nothing for list, however can I see an example or is it possible to have the list view only return objects that the user has permissions to see based on the view permission?

Figured out how to do this with a get_queryset overwrite.