Merge pull request #26727 from zeshanziya/doc-permission

doc: permission doc typo fix
This commit is contained in:
Johan Haals
2024-09-17 13:39:31 +02:00
committed by GitHub
+7 -2
View File
@@ -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.