def user_can_delete_document(user, **kwargs):
    """ Return True iff the given user can delete documents from the catalogue """
    return user.is_staff or user.has_perm('document_catalogue.delete_document')