From 51587d7de2b08d2488949fb856e0f07a599dfa68 Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Mon, 20 Apr 2020 08:00:22 +0100 Subject: [PATCH] Update views_api.py --- lnbits/extensions/withdraw/views_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/withdraw/views_api.py b/lnbits/extensions/withdraw/views_api.py index b8b0edf..d1d6a6e 100644 --- a/lnbits/extensions/withdraw/views_api.py +++ b/lnbits/extensions/withdraw/views_api.py @@ -44,7 +44,7 @@ def api_link_retrieve(link_id): @withdraw_ext.route("/api/v1/links", methods=["POST"]) @withdraw_ext.route("/api/v1/links/", methods=["PUT"]) -@api_check_wallet_key("invoice") +@api_check_wallet_key("admin") @api_validate_post_request( schema={ "title": {"type": "string", "empty": False, "required": True}, @@ -79,7 +79,7 @@ def api_link_create(link_id=None): @withdraw_ext.route("/api/v1/links/", methods=["DELETE"]) -@api_check_wallet_key("invoice") +@api_check_wallet_key("admin") def api_link_delete(link_id): link = get_withdraw_link(link_id)