revert all policy module removal from point 6

Signed-off-by: zeshanziya <zeshan.ziya@axelerant.com>
This commit is contained in:
zeshanziya
2024-09-17 17:58:04 +05:30
parent d995579b11
commit e66a84579d
+1 -6
View File
@@ -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'));
```