diff --git a/apps/client/src/app/app.component.html b/apps/client/src/app/app.component.html index d3c7d911f..d2c66e24d 100644 --- a/apps/client/src/app/app.component.html +++ b/apps/client/src/app/app.component.html @@ -66,7 +66,9 @@
Personal Finance
diff --git a/apps/client/src/app/app.component.ts b/apps/client/src/app/app.component.ts index 2793eccf4..574cf1f01 100644 --- a/apps/client/src/app/app.component.ts +++ b/apps/client/src/app/app.component.ts @@ -34,6 +34,7 @@ export class AppComponent implements OnDestroy, OnInit { public deviceType: string; public hasPermissionForBlog: boolean; public hasPermissionForSubscription: boolean; + public hasPermissionToAccessFearAndGreedIndex: boolean; public info: InfoItem; public pageTitle: string; public user: User; @@ -69,6 +70,11 @@ export class AppComponent implements OnDestroy, OnInit { permissions.enableSubscription ); + this.hasPermissionToAccessFearAndGreedIndex = hasPermission( + this.info?.globalPermissions, + permissions.enableFearAndGreedIndex + ); + this.router.events .pipe(filter((event) => event instanceof NavigationEnd)) .subscribe(() => {