Merge pull request #9881 from backstage/catalog-create-permission-no-resource-type

catalog-common: remove resourceType from catalogEntityCreatePermission
This commit is contained in:
MT Lewis
2022-03-02 10:54:36 +00:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-common': minor
---
Remove resourceType property from catalogEntityCreatePermission. Resource type refers to the type of resources whose resourceRefs should be passed along with authorize requests, to allow conditional responses for that resource type. Since creation does not correspond to an entity (as the entity does not exist at the time of authorization), the resourceRef should not be included on the permission.
@@ -49,7 +49,6 @@ export const catalogEntityCreatePermission: Permission = {
attributes: {
action: 'create',
},
resourceType: RESOURCE_TYPE_CATALOG_ENTITY,
};
/**