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