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

Function workspacePermissions

site/src/api/queries/workspaces.ts:535–544  ·  view source on GitHub ↗
(workspace?: Workspace)

Source from the content-addressed store, hash-verified

533};
534
535export const workspacePermissions = (workspace?: Workspace) => {
536 return {
537 ...checkAuthorization<WorkspacePermissions>({
538 checks: workspace ? workspaceChecks(workspace) : {},
539 }),
540 queryKey: ["workspaces", workspace?.id, "permissions"],
541 enabled: Boolean(workspace),
542 staleTime: Number.POSITIVE_INFINITY,
543 };
544};
545
546export const workspaceAgentCredentials = (
547 workspaceId: string,

Callers 4

WorkspaceMoreActionsFunction · 0.90
WorkspacePageFunction · 0.90
TaskPageFunction · 0.90
WorkspaceSettingsLayoutFunction · 0.90

Calls 2

checkAuthorizationFunction · 0.90
workspaceChecksFunction · 0.90

Tested by

no test coverage detected