MCPcopy Create free account
hub / github.com/codeaashu/claude-code / canChangeRole

Function canChangeRole

web/lib/collaboration/permissions.ts:42–48  ·  view source on GitHub ↗
(
  actorRole: CollabRole,
  targetRole: CollabRole
)

Source from the content-addressed store, hash-verified

40}
41
42export function canChangeRole(
43 actorRole: CollabRole,
44 targetRole: CollabRole
45): boolean {
46 // Owner can change any role; collaborators cannot manage access at all
47 return actorRole === "owner" && targetRole !== "owner";
48}
49
50// ─── Share Links ──────────────────────────────────────────────────────────────
51

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected