option to give more parameters to hasScope for nested scopes #1614
benlutz
started this conversation in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently working on a project, where a User can have different scopes, depending on the - I call it provider - he is working on. Therefore, my user scopes are nested and look like this:
scope: { 1: ['read:offer', 'create:offer'], 2: ['read:offer'] }
I think it would be great if you would be able to pass more than one parameter to
hasScope()
, e.g.hasScope('2', 'create:offer')
.Ideally I would then use it depending on , for example, a route parameter, like
hasScope(this.$route.params.id, 'create:offer')
Let me know what you think!
Beta Was this translation helpful? Give feedback.
All reactions