MCPcopy Index your code
hub / github.com/coder/coder / workspacePermissionChecks

Function workspacePermissionChecks

site/src/modules/permissions/workspaces.ts:1–14  ·  view source on GitHub ↗
(
	organizationId: string,
	userId: string,
)

Source from the content-addressed store, hash-verified

1export const workspacePermissionChecks = (
2 organizationId: string,
3 userId: string,
4) =>
5 ({
6 createWorkspaceForUserID: {
7 object: {
8 resource_type: "workspace",
9 organization_id: organizationId,
10 owner_id: userId,
11 },
12 action: "create",
13 },
14 }) as const;
15
16export type WorkspacePermissions = Record<
17 keyof ReturnType<typeof workspacePermissionChecks>,

Callers 2

TemplateLayoutFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected