Skip to content

Commit

Permalink
feat(hub-common): add hub:feature:catalogs:edit:advanced permission f…
Browse files Browse the repository at this point in the history
…or controlling catalog editing (#1785)
  • Loading branch information
sonofflynn89 authored Jan 30, 2025
1 parent eab454b commit d3fd836
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/common/src/permissions/HubPermissionPolicies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,19 @@ const SystemPermissionPolicies: IPermissionPolicy[] = [
environments: ["qaext"],
availability: ["alpha"],
},
// TODO: Remove this permission once all catalog configuration features are supported by sites
{
permission: "hub:feature:catalogs:edit:advanced",
dependencies: ["hub:feature:catalogs"],
entityEdit: true,
assertions: [
{
property: "entity:type",
type: "neq",
value: "Hub Site Application",
},
],
},
{
// Enable inline-workspace for Entity Views
// limited to devext alpha so we have to pass as a flag to enable
Expand Down
2 changes: 2 additions & 0 deletions packages/common/src/permissions/types/Permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const SystemPermissions = [
"hub:feature:newentityview",
"hub:feature:history",
"hub:feature:catalogs",
/** remove once sites support all catalog configuration features */
"hub:feature:catalogs:edit:advanced",
"hub:feature:inline-workspace",
"hub:feature:pagescatalog",
"hub:license:hub-premium",
Expand Down

0 comments on commit d3fd836

Please sign in to comment.