Skip to content

Commit

Permalink
fix(hub-common): rename hub:event:workspace:attendees permission (#1737)
Browse files Browse the repository at this point in the history
  • Loading branch information
rweber-esri authored Nov 25, 2024
1 parent 30ee252 commit a96ecdc
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 36 deletions.
50 changes: 19 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/common/src/core/schemas/internal/getEditorSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,15 +363,15 @@ export async function getEditorSchemas(
import("../../../events/_internal/EventSchemaCreate"),
"hub:event:edit": () =>
import("../../../events/_internal/EventSchemaEdit"),
"hub:event:attendees": () =>
"hub:event:registrants": () =>
import("../../../events/_internal/EventSchemaAttendeesSettings"),
}[type as EventEditorType]();
const eventUiSchemaModule = await {
"hub:event:create": () =>
import("../../../events/_internal/EventUiSchemaCreate"),
"hub:event:edit": () =>
import("../../../events/_internal/EventUiSchemaEdit"),
"hub:event:attendees": () =>
"hub:event:registrants": () =>
import("../../../events/_internal/EventUiSchemaAttendeesSettings"),
}[type as EventEditorType]();
schema = eventSchemaModule.buildSchema();
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/events/_internal/EventBusinessRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const EventPermissions = [
"hub:event:workspace:settings",
"hub:event:workspace:collaborators",
"hub:event:workspace:manage",
"hub:event:workspace:attendees",
"hub:event:workspace:registrants",
"hub:event:workspace:content",
"hub:event:manage",
] as const;
Expand Down Expand Up @@ -108,7 +108,7 @@ export const EventPermissionPolicies: IPermissionPolicy[] = [
dependencies: ["hub:event:workspace", "hub:event:edit"],
},
{
permission: "hub:event:workspace:attendees",
permission: "hub:event:workspace:registrants",
dependencies: ["hub:event:workspace", "hub:event:edit"],
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/common/src/events/_internal/EventSchemaCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type EventEditorType = (typeof EventEditorTypes)[number];
export const EventEditorTypes = [
"hub:event:create",
"hub:event:edit",
"hub:event:attendees",
"hub:event:registrants",
] as const;

/**
Expand Down

0 comments on commit a96ecdc

Please sign in to comment.