Skip to content

Commit

Permalink
fix(validation) change the permission to validation R
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi committed Sep 15, 2023
1 parent 4015985 commit dd809b7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ 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
Expand Down

0 comments on commit dd809b7

Please sign in to comment.