Merge pull request #31780 from backstage/catalog-import-fix
catalog-import page extension entity create fix
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-import': patch
|
||||
---
|
||||
|
||||
Fixed missing `catalog.entity.create` permission authorization in the default page extension.
|
||||
@@ -66,6 +66,7 @@
|
||||
"@backstage/integration-react": "workspace:^",
|
||||
"@backstage/plugin-catalog-common": "workspace:^",
|
||||
"@backstage/plugin-catalog-react": "workspace:^",
|
||||
"@backstage/plugin-permission-react": "workspace:^",
|
||||
"@material-ui/core": "^4.12.2",
|
||||
"@material-ui/icons": "^4.9.1",
|
||||
"@material-ui/lab": "4.0.0-alpha.61",
|
||||
|
||||
@@ -35,6 +35,8 @@ import {
|
||||
import { CatalogImportClient, catalogImportApiRef } from './api';
|
||||
import { rootRouteRef } from './plugin';
|
||||
import { catalogApiRef } from '@backstage/plugin-catalog-react';
|
||||
import { RequirePermission } from '@backstage/plugin-permission-react';
|
||||
import { catalogEntityCreatePermission } from '@backstage/plugin-catalog-common/alpha';
|
||||
|
||||
export * from './translation';
|
||||
|
||||
@@ -46,7 +48,11 @@ const catalogImportPage = PageBlueprint.make({
|
||||
routeRef: convertLegacyRouteRef(rootRouteRef),
|
||||
loader: () =>
|
||||
import('./components/ImportPage').then(m =>
|
||||
compatWrapper(<m.ImportPage />),
|
||||
compatWrapper(
|
||||
<RequirePermission permission={catalogEntityCreatePermission}>
|
||||
<m.ImportPage />
|
||||
</RequirePermission>,
|
||||
),
|
||||
),
|
||||
},
|
||||
});
|
||||
|
||||
@@ -5253,6 +5253,7 @@ __metadata:
|
||||
"@backstage/plugin-catalog": "workspace:^"
|
||||
"@backstage/plugin-catalog-common": "workspace:^"
|
||||
"@backstage/plugin-catalog-react": "workspace:^"
|
||||
"@backstage/plugin-permission-react": "workspace:^"
|
||||
"@backstage/test-utils": "workspace:^"
|
||||
"@material-ui/core": "npm:^4.12.2"
|
||||
"@material-ui/icons": "npm:^4.9.1"
|
||||
|
||||
Reference in New Issue
Block a user