def METHOD_NAME(self, request, obj=None):
    """
    Returns True if user has access to object.
    """
    obj_permission = True
    if obj and isinstance(obj, PermissionsForObjectMixin):
        obj_permission = obj.has_permission_to_object(request.user)
    return obj_permission