Skip to content

Commit

Permalink
Merge pull request #2710 from PnX-SI/fix/use-validation-c
Browse files Browse the repository at this point in the history
fix(permissions) fix asked permission
  • Loading branch information
camillemonchicourt authored Sep 27, 2023
2 parents 4350d0f + 6b54448 commit b862a4c
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 b862a4c

Please sign in to comment.