We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the "can" rule returns false, no page will be rendered ( empty page )
false
{ path: 'posts/:postId', component: PostEditor, meta: { can: (to, from, can) => { return axios.get(`/api/posts/${to.params.id}`) .then((response) => can('edit-post', response.data)); }, onDeniedRoute: '/unauthorized' } }
This can be easy tested with the playground example here: https://github.com/victorybiz/vue-simple-acl/blob/master/playground/src/main.ts#L30
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If the "can" rule returns
false
, no page will be rendered ( empty page )This can be easy tested with the playground example here: https://github.com/victorybiz/vue-simple-acl/blob/master/playground/src/main.ts#L30
The text was updated successfully, but these errors were encountered: