Co-authored-by: Jonas Plum <git@jonasplum.de>
This commit is contained in:
Jonas Plum
2022-10-01 21:38:13 +02:00
committed by GitHub
parent 4eb0658888
commit f73e91d142
56 changed files with 402 additions and 1760 deletions
+3 -3
View File
@@ -47,7 +47,7 @@ export default Vue.extend({
},
computed: {
readonly: function (): boolean {
return !this.hasRole("engineer:template:write");
return !this.hasRole("template:write");
},
},
methods: {
@@ -81,8 +81,8 @@ export default Vue.extend({
}
},
hasRole: function (s: string): boolean {
if (this.$store.state.user.roles) {
return this.lodash.includes(this.$store.state.user.roles, s);
if (this.$store.state.settings.roles) {
return this.lodash.includes(this.$store.state.settings.roles, s);
}
return false;
}