Skip to content

Commit

Permalink
Merge branch 'master' into feat/updates-and-refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeLLLa authored Jun 18, 2021
2 parents 519c0a7 + 1b78f1f commit f5dc8ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ For more details refer to [benchmark doc](benchmark/BENCHMARK.md).

## Usage

** NOTE **: No cyclic roles interherence. You've been warned.
** NOTE **: No cyclic roles inheritance. You've been warned.

`can` method returns `boolean` if 3 arguments are passed to it.
It could return `Promise` if rule has `when` function and `context` is passed.
Expand Down Expand Up @@ -126,6 +126,7 @@ const a = new RBAC({
},
});


console.log(a.can('user', 'dog', 'read')); // true

(async () => {
Expand All @@ -148,7 +149,7 @@ PRs welcome!
- [x] Add/delete roles in runtime
- [x] Add some unit tests
- [ ] Add possibility to add/delete roles inherits
- [ ] Deal with circular role interherence (but I'm totally ok with callstack error)
- [ ] Deal with circular role inheritance (but I'm totally ok with callstack error)

## Docs

Expand Down

0 comments on commit f5dc8ef

Please sign in to comment.