* 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: {
isVerwaltung() {
if (this.$store.state.keycloak.keycloak === null) {
return false
}
return this.$store.state.keycloak.keycloak.realmAccess.roles.includes('verwaltung')
},
isAnonym() {
if (this.$store.state.keycloak.keycloak === null) {
return true
}
return this.$store.state.keycloak.isAnonym
}
},

View File

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