vue-realworld-example-app
vue-realworld-example-app copied to clipboard
Example of using CASL to create User role for /settings route
Addresses #39.
There are still conflicts with the master branch. I vote for:
- deleting
package-lock.jsonin favor of yarn.lock - fixing
package.json, should not be hard
There are still conflicts with the master branch. I vote for:
- deleting
package-lock.jsonin favor of yarn.lock- fixing
package.json, should not be hard
That commit was flawed. I've made necessary corrections to e49a815
Why use ctx instead of context as a variable. The whole app uses context and not ctx.
Also, in ability.js, you are accessing the state directly while getters are defined for these attributes.
context.state.isAuthenticated and context.state.user instead of the getters.