diff --git a/docs/permissions/getting-started.md b/docs/permissions/getting-started.md index d2c487e6ea..b000c19d71 100644 --- a/docs/permissions/getting-started.md +++ b/docs/permissions/getting-started.md @@ -81,13 +81,18 @@ 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 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.