@posiwise/smart-crm 0.0.57 → 0.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3567,7 +3567,8 @@ class SmartCrmAnalysisComponent extends AppBaseComponent {
3567
3567
  this.userStore().subscribe(user => {
3568
3568
  if (user) {
3569
3569
  this.userId = user.id;
3570
- if (this.permissionService.isGranted('Pages.Beta')) {
3570
+ if (this.permissionService.evaluatePermissions(CRM_PERMISSIONS.Insight) ||
3571
+ this.permissionService.isSuperAdmin()) {
3571
3572
  this.dateRanges = HelperService.initializeDateRanges();
3572
3573
  this.selectedDateRange = '';
3573
3574
  this.getChartData();
@@ -3906,7 +3907,7 @@ class SmartCrmAccountInsightComponent extends AppBaseComponent {
3906
3907
  if (user) {
3907
3908
  this.user = user;
3908
3909
  this.userId = user.id;
3909
- if (this.permissionService.isGranted('Pages.Beta') ||
3910
+ if (this.permissionService.evaluatePermissions(CRM_PERMISSIONS.Insight) ||
3910
3911
  this.permissionService.isSuperAdmin()) {
3911
3912
  this.getSignedUpLastNinetyDays();
3912
3913
  this.getActiveOpportunities();