diff --git a/frontend/src/app/shared/alertInfoModule/alert-Info.component.ts b/frontend/src/app/shared/alertInfoModule/alert-Info.component.ts index 048c7b7c0e..9f78949edc 100644 --- a/frontend/src/app/shared/alertInfoModule/alert-Info.component.ts +++ b/frontend/src/app/shared/alertInfoModule/alert-Info.component.ts @@ -51,7 +51,10 @@ export class AlertInfoComponent implements OnInit, OnChanges { }); } ngOnChanges() { - this.canChangeAlert = this.userCruved?.R && this.userCruved?.R > 0 && !isEmpty(this.alert); + let moduleValidation = this.moduleService.getModule('VALIDATION'); + + this.canChangeAlert = + moduleValidation?.cruved?.R && moduleValidation?.cruved?.R > 0 && !isEmpty(this.alert); } /** * Create new alert with /reports GET service