Skip to content

Commit

Permalink
Merge pull request #9729 from marmelab/update-rbac-doc
Browse files Browse the repository at this point in the history
[Doc] Update RBAC to mention ability to define permissions on an array of resources
  • Loading branch information
fzaninotto committed Mar 19, 2024
2 parents 2998475 + d85fcb9 commit e87f8f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/AuthRBAC.md
Expand Up @@ -98,6 +98,7 @@ Here are a few examples of permissions:

- `{ action: "*", resource: "*" }`: allow everything
- `{ action: "read", resource: "*" }`: allow read actions on all resources
- `{ action: "read", resource: ["companies", "people"] }`: allow read actions on a subset of resources
- `{ action: ["read", "create", "edit", "export"], resource: "companies" }`: allow all actions except delete on companies
- `{ action: ["write"], resource: "game.score", record: { "id": "123" } }`: allow to change the score on a particular game

Expand Down

0 comments on commit e87f8f4

Please sign in to comment.