mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 13:23:34 +00:00
Resolve the Unauthorized issue (#12262)
This commit is contained in:
@@ -210,7 +210,10 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
|
||||
protected organizationsPaymentStatus$: Observable<FreeTrial[]> = combineLatest([
|
||||
this.organizationService.organizations$.pipe(
|
||||
map((organizations) => organizations?.filter((org) => org.isOwner) ?? []),
|
||||
map(
|
||||
(organizations) =>
|
||||
organizations?.filter((org) => org.isOwner && org.canViewBillingHistory) ?? [],
|
||||
),
|
||||
),
|
||||
this.hasSubscription$,
|
||||
]).pipe(
|
||||
|
||||
@@ -592,7 +592,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
||||
organization$,
|
||||
this.hasSubscription$.pipe(filter((hasSubscription) => hasSubscription !== null)),
|
||||
]).pipe(
|
||||
filter(([org, hasSubscription]) => org.isOwner && hasSubscription),
|
||||
filter(
|
||||
([org, hasSubscription]) => org.isOwner && hasSubscription && org.canViewBillingHistory,
|
||||
),
|
||||
switchMap(([org]) =>
|
||||
combineLatest([
|
||||
of(org),
|
||||
|
||||
Reference in New Issue
Block a user