* hotfix on logging in

bug-fix: no-task
This commit is contained in:
2023-01-10 10:07:44 +01:00
parent 4ba7931222
commit 19b3211bde
2 changed files with 6 additions and 1 deletions

View File

@@ -96,9 +96,15 @@ export default {
}, },
computed: { computed: {
isVerwaltung() { isVerwaltung() {
if (this.$store.state.keycloak.keycloak === null) {
return false
}
return this.$store.state.keycloak.keycloak.realmAccess.roles.includes('verwaltung') return this.$store.state.keycloak.keycloak.realmAccess.roles.includes('verwaltung')
}, },
isAnonym() { isAnonym() {
if (this.$store.state.keycloak.keycloak === null) {
return true
}
return this.$store.state.keycloak.isAnonym return this.$store.state.keycloak.isAnonym
} }
}, },

View File

@@ -95,7 +95,6 @@ export default {
methods: { methods: {
...mapActions(['fetchOpenContracts', 'openModal']), ...mapActions(['fetchOpenContracts', 'openModal']),
selectContract(ID) { selectContract(ID) {
console.log(ID)
this.$store.commit('setSelectedContract', ID) this.$store.commit('setSelectedContract', ID)
} }
} }