Skip to content

Commit

Permalink
fix(permissions) fix asked permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Narcisi committed Sep 18, 2023
1 parent 584af3f commit 6b54448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/geonature/core/gn_synthese/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1098,6 +1098,7 @@ def create_report(permissions):

synthese = Synthese.query.options(
Load(Synthese).raiseload("*"),
joinedload("nomenclature_sensitivity"),
joinedload("cor_observers"),
joinedload("digitiser"),
joinedload("dataset"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class AlertInfoComponent implements OnInit, OnChanges {
let moduleValidation = this.moduleService.getModule('VALIDATION');

this.canChangeAlert =
moduleValidation?.cruved?.R && moduleValidation?.cruved?.R > 0 && !isEmpty(this.alert);
moduleValidation?.cruved?.C && moduleValidation?.cruved?.C > 0 && !isEmpty(this.alert);
}
/**
* Create new alert with /reports GET service
Expand Down

0 comments on commit 6b54448

Please sign in to comment.