Skip to content

Commit

Permalink
ISI-485 Bugfix isEditableByBedarfsmeldung
Browse files Browse the repository at this point in the history
  • Loading branch information
albrecht.schaenzel committed Aug 29, 2023
1 parent 068e466 commit fc68a68
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions frontend/src/mixins/security/AbfrageSecurityMixin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ export default class AbfrageSecurityMixin extends Mixins(SecurityMixin) {
: false;
}

public isEditableByBedarfsmeldung(): boolean {
const abfrage: InfrastrukturabfrageModel = this.$store.getters["search/selectedAbfrage"];
return !_.isNil(abfrage)
? this.isRoleAdminOrBedarfsmeldung() && abfrage.abfrage?.statusAbfrage === StatusAbfrage.InBearbeitungFachreferate
: false;
}

public isEditableByAdmin(): boolean {
const abfrage: InfrastrukturabfrageModel = this.$store.getters["search/selectedAbfrage"];
return !_.isNil(abfrage) ? this.isRoleAdmin() : false;
Expand Down

0 comments on commit fc68a68

Please sign in to comment.