|
|
@ -38,7 +38,6 @@ export class AppComponent implements OnDestroy, OnInit {
|
|
|
|
public currentYear = new Date().getFullYear();
|
|
|
|
public currentYear = new Date().getFullYear();
|
|
|
|
public deviceType: string;
|
|
|
|
public deviceType: string;
|
|
|
|
public hasInfoMessage: boolean;
|
|
|
|
public hasInfoMessage: boolean;
|
|
|
|
public hasPermissionForBlog: boolean;
|
|
|
|
|
|
|
|
public hasPermissionForStatistics: boolean;
|
|
|
|
public hasPermissionForStatistics: boolean;
|
|
|
|
public hasPermissionForSubscription: boolean;
|
|
|
|
public hasPermissionForSubscription: boolean;
|
|
|
|
public hasPermissionToAccessFearAndGreedIndex: boolean;
|
|
|
|
public hasPermissionToAccessFearAndGreedIndex: boolean;
|
|
|
@ -81,11 +80,6 @@ export class AppComponent implements OnDestroy, OnInit {
|
|
|
|
this.deviceType = this.deviceService.getDeviceInfo().deviceType;
|
|
|
|
this.deviceType = this.deviceService.getDeviceInfo().deviceType;
|
|
|
|
this.info = this.dataService.fetchInfo();
|
|
|
|
this.info = this.dataService.fetchInfo();
|
|
|
|
|
|
|
|
|
|
|
|
this.hasPermissionForBlog = hasPermission(
|
|
|
|
|
|
|
|
this.info?.globalPermissions,
|
|
|
|
|
|
|
|
permissions.enableBlog
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.hasPermissionForSubscription = hasPermission(
|
|
|
|
this.hasPermissionForSubscription = hasPermission(
|
|
|
|
this.info?.globalPermissions,
|
|
|
|
this.info?.globalPermissions,
|
|
|
|
permissions.enableSubscription
|
|
|
|
permissions.enableSubscription
|
|
|
|