def user_can_post_document(user, **kwargs):
    """ Return True iff the given user can upload new files to the catalouge """
    return user.is_staff or user.has_perm('document_catalogue.add_document')