mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53: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([
|
protected organizationsPaymentStatus$: Observable<FreeTrial[]> = combineLatest([
|
||||||
this.organizationService.organizations$.pipe(
|
this.organizationService.organizations$.pipe(
|
||||||
map((organizations) => organizations?.filter((org) => org.isOwner) ?? []),
|
map(
|
||||||
|
(organizations) =>
|
||||||
|
organizations?.filter((org) => org.isOwner && org.canViewBillingHistory) ?? [],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
this.hasSubscription$,
|
this.hasSubscription$,
|
||||||
]).pipe(
|
]).pipe(
|
||||||
|
|||||||
@@ -592,7 +592,9 @@ export class VaultComponent implements OnInit, OnDestroy {
|
|||||||
organization$,
|
organization$,
|
||||||
this.hasSubscription$.pipe(filter((hasSubscription) => hasSubscription !== null)),
|
this.hasSubscription$.pipe(filter((hasSubscription) => hasSubscription !== null)),
|
||||||
]).pipe(
|
]).pipe(
|
||||||
filter(([org, hasSubscription]) => org.isOwner && hasSubscription),
|
filter(
|
||||||
|
([org, hasSubscription]) => org.isOwner && hasSubscription && org.canViewBillingHistory,
|
||||||
|
),
|
||||||
switchMap(([org]) =>
|
switchMap(([org]) =>
|
||||||
combineLatest([
|
combineLatest([
|
||||||
of(org),
|
of(org),
|
||||||
|
|||||||
Reference in New Issue
Block a user