Skip to content

Commit

Permalink
fix: update permissions for use event and discussion pane; add startD…
Browse files Browse the repository at this point in the history
…ate to SortOptions
  • Loading branch information
dbouwman committed Nov 5, 2024
1 parent 4a24fb4 commit 57801a1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
4 changes: 1 addition & 3 deletions packages/common/src/permissions/HubPermissionPolicies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,9 @@ const SystemPermissionPolicies: IPermissionPolicy[] = [
},
{
// When enabled, the manage links will take the user the org home site
// Reverting to devext but likely remove and always load workspaces
// on the "current site"
permission: "hub:feature:workspace:org",
availability: ["alpha"],
environments: ["devext"],
environments: ["devext", "qaext"],
},
{
// when enabled keyboard shortcuts will be available
Expand Down
3 changes: 2 additions & 1 deletion packages/common/src/search/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ export type SortOption =
| "joined"
| "memberType"
| "firstName"
| "lastName";
| "lastName"
| "startDate";

/**
* Defines a span of time by specifying a `from` and `to` Date
Expand Down
13 changes: 13 additions & 0 deletions packages/common/src/users/_internal/UserBusinessRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const UserPermissions = [
"hub:user:workspace:settings",
"hub:user:workspace:content",
"hub:user:workspace:groups",
"hub:user:workspace:events",
"hub:user:workspace:discussions",
"hub:user:workspace:shared-with-me",
"hub:user:manage",
] as const;
Expand Down Expand Up @@ -64,6 +66,17 @@ export const UserPermissionPolicies: IPermissionPolicy[] = [
permission: "hub:user:workspace:groups",
dependencies: ["hub:user:workspace", "hub:user:owner"],
},
{
permission: "hub:user:workspace:events",
services: ["events"],
dependencies: ["hub:user:workspace", "hub:user:owner"],
},
{
permission: "hub:user:workspace:discussions",
availability: ["alpha"],
services: ["discussions"],
dependencies: ["hub:user:workspace", "hub:user:owner"],
},
{
permission: "hub:user:workspace:settings",
dependencies: ["hub:user:workspace", "hub:user:owner"],
Expand Down

0 comments on commit 57801a1

Please sign in to comment.