def METHOD_NAME(view_func):
    """
    Decorator for views that checks that the user is logged in and has edit
    right for at least one evaluation.
    """
    def check_user(user):
        return user.is_editor
    return user_passes_test(check_user)(view_func)