'Make sure we give correct permissions to read/write the thread.'

def has_object_permission(self, request, view, obj):

    if ((not request.user.is_authenticated()) or obj.read_permission_public):
        return obj.read_permission_public
    return user_has_perm_thread(obj, request.user)
