def METHOD_NAME(func):
    @wraps(func)
    def check_if_is_logged_in(*args, **kwargs):
        if not current_user.is_authenticated:
            abort(401)
        return func(*args, **kwargs)
    return check_if_is_logged_in