Chatwoot/app/javascript/dashboard/mixins/isAdmin.js

13 lines
222 B
JavaScript
Raw Permalink Normal View History

import { mapGetters } from 'vuex';
export default {
computed: {
...mapGetters({
currentUserRole: 'getCurrentRole',
}),
isAdmin() {
return this.currentUserRole === 'administrator';
},
},
};