Skip to content
New issue

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

superRole implmentation questions #46

Open
m7salam opened this issue Nov 9, 2021 · 1 comment
Open

superRole implmentation questions #46

m7salam opened this issue Nov 9, 2021 · 1 comment

Comments

@m7salam
Copy link

m7salam commented Nov 9, 2021

Hello,

Great library and seems easy but the documentation a bit lacking on explaining the setup of the superRole

If I made

import Vue from 'vue';
import VueGates from 'vue-gates';

Vue.use(VueGates, {
  superRole:true
});

then how would the library differentiate which role is what

or I can just use it as v-role="superRole" or v-permission="superRole"

this is a bit confusing to me on how to establish the flow of the superRole

would appreciate if you can help by explaining how would u implement it

thanks

@m7salam m7salam changed the title superRole questions superRole implmentation questions Nov 9, 2021
@Dennise89
Copy link

Correct me if I'm wrong, but the superRole should not be a boolean but a string. For example if you have a role 'superadmin' you should change it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants