Skip to content

Instantly share code, notes, and snippets.

View timrijkse's full-sized avatar

Tim | Rubber Ducky timrijkse

View GitHub Profile
@eliran-arkabi
eliran-arkabi / nuxtjs-permissions-roles-plugin.js
Last active September 4, 2021 04:59
nuxtjs plugin check permissions
import Vue from 'vue'
export default ({store, $axios}) => {
//add directives
//v-can - check permissions
Vue.directive('can', {
inserted (el, binding, vnode) {