def METHOD_NAME(func):
    @wraps(func)
    def decorated_view(*args, **kwargs):
        if current_user.is_authenticated:
            return func(*args, **kwargs)
        elif redirect_to:
            return redirect(url_for(redirect_to), code)
        else:
            abort(403)
    return decorated_view