From d85fcb93db0b640a763fc5d464bf2a044b92ee93 Mon Sep 17 00:00:00 2001 From: erwanMarmelab Date: Mon, 18 Mar 2024 10:58:18 +0100 Subject: [PATCH] update doc --- docs/AuthRBAC.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/AuthRBAC.md b/docs/AuthRBAC.md index 6f37cd27ead..7b0adad68c9 100644 --- a/docs/AuthRBAC.md +++ b/docs/AuthRBAC.md @@ -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