mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-21 02:11:54 +01:00
check authed before checking if token has premium (#170)
This commit is contained in:
parent
27bcbf4b41
commit
0a20face13
@ -107,6 +107,11 @@ export class UserService implements UserServiceAbstraction {
|
||||
}
|
||||
|
||||
async canAccessPremium(): Promise<boolean> {
|
||||
const authed = await this.isAuthenticated();
|
||||
if (!authed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const tokenPremium = this.tokenService.getPremium();
|
||||
if (tokenPremium) {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user