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 90d0921
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90d0921

Please sign in to comment.