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 authored and camillemonchicourt committed Sep 15, 2023
1 parent de57009 commit e32d43e
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 e32d43e

Please sign in to comment.