From 4c679d083aa90207ccccf99c59d7f2d37ca2cd5d Mon Sep 17 00:00:00 2001 From: AP Date: Tue, 26 May 2020 06:43:24 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20correct=20auth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/context/helpers/context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/helpers/context.ts b/src/context/helpers/context.ts index 8f93b369..08b70a85 100644 --- a/src/context/helpers/context.ts +++ b/src/context/helpers/context.ts @@ -68,7 +68,7 @@ export const getAuthFromAccount = ( return { type: account.type, host, - macaroon: viewOnly && viewOnly !== '' ? viewOnly : session, + macaroon: session || viewOnly, cert, }; };