Skip to content

Vue 3 - how to use CASL when we won't know a user's permissions until they log in? #807

Closed Answered by stalniy
ffxsam asked this question in Q&A
Discussion options

You must be logged in to vote

Start with empty ability and then update permissions via ability.update. The doc says about providing different Ability instance. No point to provide different just update singleton object. 1 Ability per app

check examples for more details - https://github.com/stalniy/casl-examples/tree/master/packages/vue-blog

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ffxsam
Comment options

Answer selected by ffxsam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants