I'm on my phone so sorry for being brief. We currently use django-guardian and DRF.
has_permission is if the user can do something in the general sense. Perhaps an abusive user can no longer comment. Or a manager can edit users.
has_object_permission is if in addition, the user can do something on that specific object.
In practice we use django guadian as a last resort and check for properties on an object or its parent and return True early if possible.
I can go into more details if yall want :)
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
the critical question is, can a user commont on a specific object without having general permission on the model?
I personally would say: absolutely yes. What do you guys think