addded draft for permissions

This commit is contained in:
konrad 2017-11-21 12:32:18 +01:00 committed by kolaente
parent e58bccb6e8
commit 21b051bac3
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 9 additions and 0 deletions

View File

@ -51,6 +51,15 @@ Vue.directive('focus', {
}
})
/*
// Check permissions on route-level
// Passed via 'meta: {perms: ['auth', 'admin']}' on routes definition
router.beforeEach((to, from, next) => {
console.log(to)
next()
})
*/
/* eslint-disable no-new */
new Vue({
el: '#app',