vcomply-workflow-engine 3.1.37 → 3.1.39

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.
@@ -5392,11 +5392,12 @@ class GrcObjectContainerComponent {
5392
5392
  this.hideElementsFromMoreOptions = new EventEmitter();
5393
5393
  this.hideMoreOption = [];
5394
5394
  this.authService.getUserInfo().subscribe((res) => {
5395
- const complianceSubmodule = res?.roleActions[res?.roleActions?.findIndex((ele) => ele.moduleName == 'risk')];
5396
- if (complianceSubmodule?.isActive === 0) {
5395
+ const riskPermission = res?.roleActions[res?.roleActions?.findIndex((ele) => ele.moduleName == 'risk')];
5396
+ if (riskPermission?.isActive !== 1) {
5397
5397
  this.hideMoreOption.push('LINK_RISK_CATEGORIES_RISKS');
5398
5398
  }
5399
5399
  this.hideElementsFromMoreOptions.emit(this.hideMoreOption);
5400
+ console.log('riskPermission ==>', riskPermission);
5400
5401
  });
5401
5402
  }
5402
5403
  ngOnDestroy() {
@@ -29994,7 +29995,7 @@ class MoreOptionComponent {
29994
29995
  tooltipTitle: 'LINK RISKS',
29995
29996
  tooltipMessage: `This option lets you link a GRC Object with related risks.`,
29996
29997
  checked: false,
29997
- hidden: false,
29998
+ hidden: true,
29998
29999
  code: 'LINK_RISK_CATEGORIES_RISKS',
29999
30000
  },
30000
30001
  {