Skip to content

Commit

Permalink
docs: point to casl v6 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fratzinger committed Mar 28, 2023
1 parent 8e52408 commit 0a5cf78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Simply run `npm test` and all your tests in the `test/` directory will be run. I

## Help

For more information on all the things you can do, visit [FeathersJS](http://docs.feathersjs.com) and [CASL](https://casl.js.org/v5/en/).
For more information on all the things you can do, visit [FeathersJS](http://docs.feathersjs.com) and [CASL](https://casl.js.org/v6/en/).

## License

Expand Down
10 changes: 5 additions & 5 deletions docs/client-side.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm install @casl/angular @casl/ability
yarn add @casl/angular @casl/ability
```

You're interested how it works for `angular`? Sorry, I can't help with that, since I just use it with `Vue`. As a starting point, see [#Feathers client](#feathers-client) and [@casl/angular](https://casl.js.org/v5/en/package/casl-angular). That will get you closer to the goal. If you got a working example anyway, I would be curious, how it works. Please create a issue or pull request and let me know.
You're interested how it works for `angular`? Sorry, I can't help with that, since I just use it with `Vue`. As a starting point, see [#Feathers client](#feathers-client) and [@casl/angular](https://casl.js.org/v6/en/package/casl-angular). That will get you closer to the goal. If you got a working example anyway, I would be curious, how it works. Please create a issue or pull request and let me know.

## React

Expand All @@ -26,7 +26,7 @@ npm install @casl/react @casl/ability
yarn add @casl/react @casl/ability
```

You're interested how it works for `react`? Sorry, I can't help with that, since I just use it with `Vue`. As a starting point, see [#Feathers client](#feathers-client) and [@casl/react](https://casl.js.org/v5/en/package/casl-react). That will get you closer to the goal. If you got a working example anyway, I would be curious, how it works. Please create a issue or pull request and let me know.
You're interested how it works for `react`? Sorry, I can't help with that, since I just use it with `Vue`. As a starting point, see [#Feathers client](#feathers-client) and [@casl/react](https://casl.js.org/v6/en/package/casl-react). That will get you closer to the goal. If you got a working example anyway, I would be curious, how it works. Please create a issue or pull request and let me know.

## FeathersVuex

Expand Down Expand Up @@ -124,7 +124,7 @@ export const store = new Vuex.Store({

#### register the @casl/vue plugin

Now it's more like conventional `@casl/vue` work and we're almost done. It's mostly like the [Getting started of @casl/vue](https://casl.js.org/v5/en/package/casl-vue#getting-started)
Now it's more like conventional `@casl/vue` work and we're almost done. It's mostly like the [Getting started of @casl/vue](https://casl.js.org/v6/en/package/casl-vue#getting-started)

```ts
// main.ts
Expand All @@ -138,7 +138,7 @@ Vue.use(abilitiesPlugin, store.state.casl.ability);

### Just use it

From here on, just follow the instructions at [@casl/vue](https://casl.js.org/v5/en/package/casl-vue#check-permissions-in-templates). For example:
From here on, just follow the instructions at [@casl/vue](https://casl.js.org/v6/en/package/casl-vue#getting-started). For example:

```vue
<template>
Expand Down Expand Up @@ -169,7 +169,7 @@ npm install @casl/aurelia @casl/ability
yarn add @casl/aurelia @casl/ability
```

You're interested how it works for `aurelia`? Sorry, I can't help with that, since I just use it with `Vue`. As a starting point, see [#Feathers client](#feathers-client) and [@casl/aurelia](https://casl.js.org/v5/en/package/casl-aurelia). That will get you closer to the goal. If you got a working example anyway, I would be curious, how it works. Please create a issue or pull request and let me know.
You're interested how it works for `aurelia`? Sorry, I can't help with that, since I just use it with `Vue`. As a starting point, see [#Feathers client](#feathers-client) and [@casl/aurelia](https://casl.js.org/v6/en/package/casl-aurelia). That will get you closer to the goal. If you got a working example anyway, I would be curious, how it works. Please create a issue or pull request and let me know.

## Others

Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const resolveAction = createAliasResolver({
});

export const defineRulesFor = (user) => {
// also see https://casl.js.org/v5/en/guide/define-rules
// also see https://casl.js.org/v6/en/guide/define-rules
const { can, cannot, rules } = new AbilityBuilder(Ability);

if (user.role && user.role.name === "SuperAdmin") {
Expand Down Expand Up @@ -302,4 +302,4 @@ Simply run `npm test` and all your tests in the `test/` directory will be run. T

## Help

For more information on all the things you can do, visit [FeathersJS](http://docs.feathersjs.com) and [CASL](https://casl.js.org/v5/en/).
For more information on all the things you can do, visit [FeathersJS](http://docs.feathersjs.com) and [CASL](https://casl.js.org/v6/en/).

0 comments on commit 0a5cf78

Please sign in to comment.