diff --git a/frontend/src/mixins/security/AbfrageSecurityMixin.ts b/frontend/src/mixins/security/AbfrageSecurityMixin.ts index 4e4fba831..9d810e6ea 100644 --- a/frontend/src/mixins/security/AbfrageSecurityMixin.ts +++ b/frontend/src/mixins/security/AbfrageSecurityMixin.ts @@ -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;