From c89bdaec79169d8764a85bafc41d5370c0e9afa3 Mon Sep 17 00:00:00 2001 From: zeshanziya Date: Tue, 17 Sep 2024 12:21:00 +0530 Subject: [PATCH 1/2] doc: permission doc typo fix Signed-off-by: zeshanziya --- docs/permissions/getting-started.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/permissions/getting-started.md b/docs/permissions/getting-started.md index d2c487e6ea..dbc714903e 100644 --- a/docs/permissions/getting-started.md +++ b/docs/permissions/getting-started.md @@ -86,8 +86,13 @@ To help validate the permission framework is setup we'll create a Test Permissio ```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/permissionPolicyExtension')); + backend.add(import('./extensions/permissionsPolicyExtension')); ``` You now have a Test Permission Policy in place, this will help us test that the permission framework is working in the next section. From 4d8eec1535e8f713288c9d91afef23909b9ba319 Mon Sep 17 00:00:00 2001 From: zeshanziya Date: Tue, 17 Sep 2024 14:47:13 +0530 Subject: [PATCH 2/2] rephrased instructions for all policy module removal Signed-off-by: zeshanziya --- docs/permissions/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/permissions/getting-started.md b/docs/permissions/getting-started.md index dbc714903e..b000c19d71 100644 --- a/docs/permissions/getting-started.md +++ b/docs/permissions/getting-started.md @@ -81,7 +81,7 @@ 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 follow line: +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: ```ts title="packages/backend/src/index.ts" // permission plugin