Yong Liaw

Results 3 comments of Yong Liaw

A better and simpler solution is to change the BasePermission.has_object_permission() to return self.has_permission() instead of True i.e. def has_object_permission(self, request, view, obj): return self.has_permission(request, view) I have implemented a custom...

@sparkyb Can you kindly elaborate the other cases where my mentioned above solution would fail? Thank.

@sparkyb First thank for the explanation. But for your given example of ~IsOwner, my mentioned solution will work because BasePermission.has_object_permission() return self.has_permission() instead of True. This is the only change...