From db12cd92b713780996e0cec6390b1d3858f90c89 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 18 Sep 2020 15:07:32 -0400 Subject: [PATCH] check authed before checking if token has premium (#1074) --- src/Core/Services/UserService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Core/Services/UserService.cs b/src/Core/Services/UserService.cs index 92e799671..f422528f3 100644 --- a/src/Core/Services/UserService.cs +++ b/src/Core/Services/UserService.cs @@ -124,6 +124,12 @@ namespace Bit.Core.Services public async Task CanAccessPremiumAsync() { + var authed = await IsAuthenticatedAsync(); + if (!authed) + { + return false; + } + var tokenPremium = _tokenService.GetPremium(); if (tokenPremium) {