mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +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> {
|
||||
const authed = await this.isAuthenticated();
|
||||
if (!authed) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const tokenPremium = this.tokenService.getPremium();
|
||||
if (tokenPremium) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user