Add changeset descriptions
Signed-off-by: Joon Park <joonp@spotify.com>
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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';
|
||||
|
||||
...
|
||||
|
||||
- <Route path="/catalog-import" element={<CatalogImportPage />} />
|
||||
+ <PermissionedRoute
|
||||
+ path="/catalog-import"
|
||||
+ permission={catalogEntityCreatePermission}
|
||||
+ element={<CatalogImportPage />}
|
||||
+ />
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user