mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-14 19:22:46 +01:00
@@ -68,7 +68,7 @@ export default Vue.extend({
|
||||
}),
|
||||
computed: {
|
||||
canWrite: function (): boolean {
|
||||
return this.hasRole("admin:job:write");
|
||||
return this.hasRole("job:write");
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
@@ -80,8 +80,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user