From e66a84579da416ecd7d963b71d9e8bbc55aadf8e Mon Sep 17 00:00:00 2001 From: zeshanziya Date: Tue, 17 Sep 2024 17:58:04 +0530 Subject: [PATCH] revert all policy module removal from point 6 Signed-off-by: zeshanziya --- docs/permissions/getting-started.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/permissions/getting-started.md b/docs/permissions/getting-started.md index b000c19d71..118282bbd4 100644 --- a/docs/permissions/getting-started.md +++ b/docs/permissions/getting-started.md @@ -81,16 +81,11 @@ To help validate the permission framework is setup we'll create a Test Permissio }); ``` -6. We now need to register this in the backend. We will do this by adding the new module and remove the existing allow all policy module as we can't have two modules setting the policy: +6. We now need to register this in the backend. We will do this by adding the follow line: ```ts title="packages/backend/src/index.ts" // permission plugin backend.add(import('@backstage/plugin-permission-backend/alpha')); - /* highlight-remove-start */ - backend.add( - import('@backstage/plugin-permission-backend-module-allow-all-policy'), - ); - /* highlight-remove-end */ /* highlight-add-next-line */ backend.add(import('./extensions/permissionsPolicyExtension')); ```