From 7b85cf7aaf6c83bf0a46cac8e5f93f211b632626 Mon Sep 17 00:00:00 2001 From: Oleksandr Andriienko Date: Tue, 9 Apr 2024 11:58:40 +0300 Subject: [PATCH] fix(rbac): update doc Signed-off-by: Oleksandr Andriienko --- plugins/rbac-backend/docs/apis.md | 69 +++++++++++++++++-------------- 1 file changed, 38 insertions(+), 31 deletions(-) diff --git a/plugins/rbac-backend/docs/apis.md b/plugins/rbac-backend/docs/apis.md index a249130892..03ae51a33b 100644 --- a/plugins/rbac-backend/docs/apis.md +++ b/plugins/rbac-backend/docs/apis.md @@ -415,37 +415,44 @@ Returns: [ { "pluginId": "catalog", - "policies": [ - { - "permission": "catalog-entity", - "policy": "read" - }, - { - "permission": "catalog.entity.create", - "policy": "create" - }, - { - "permission": "catalog-entity", - "policy": "delete" - }, - { - "permission": "catalog-entity", - "policy": "update" - }, - { - "permission": "catalog.location.read", - "policy": "read" - }, - { - "permission": "catalog.location.create", - "policy": "create" - }, - { - "permission": "catalog.location.delete", - "policy": "delete" - } - ] - }, + "policies": [ + { + "isResourced": true, + "permission": "catalog-entity", + "policy": "read" + }, + { + "isResourced": false, + "permission": "catalog.entity.create", + "policy": "create" + }, + { + "isResourced": true, + "permission": "catalog-entity", + "policy": "delete" + }, + { + "isResourced": true, + "permission": "catalog-entity", + "policy": "update" + }, + { + "isResourced": false, + "permission": "catalog.location.read", + "policy": "read" + }, + { + "isResourced": false, + "permission": "catalog.location.create", + "policy": "create" + }, + { + "isResourced": false, + "permission": "catalog.location.delete", + "policy": "delete" + } + ] + }, ... ] ```