diff --git a/.changeset/cyan-turtles-relax.md b/.changeset/cyan-turtles-relax.md index 294159e2bd..e7a8aa4c8a 100644 --- a/.changeset/cyan-turtles-relax.md +++ b/.changeset/cyan-turtles-relax.md @@ -3,3 +3,5 @@ --- Add catalogEntityCreatePermission + +The `catalogEntityCreatePermission` can be imported and used when authoring a permission policy to restrict/grant a user's access to the catalog import plugin. (And the "Register Existing Component" button which navigates there). diff --git a/.changeset/silver-eagles-reply.md b/.changeset/silver-eagles-reply.md index 2eabca0b1f..adfbab2284 100644 --- a/.changeset/silver-eagles-reply.md +++ b/.changeset/silver-eagles-reply.md @@ -3,3 +3,21 @@ --- Permission the catalog-import route + +Use the `PermissionedRoute` for `CatalogImportPage` instead of the normal `Route`: + +```diff +// app/src/App.tsx +... ++ import { PermissionedRoute } from '@backstage/plugin-permission-react'; ++ import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common'; + +... + +- } /> ++ } ++ /> +```