MCPcopy Index your code
hub / github.com/simstudioai/sim / checkChunkWriteAccess

Function checkChunkWriteAccess

apps/sim/app/api/knowledge/utils.ts:382–389  ·  view source on GitHub ↗
(
  knowledgeBaseId: string,
  documentId: string,
  chunkId: string,
  userId: string
)

Source from the content-addressed store, hash-verified

380 * operations require the same permission as creation rather than read.
381 */
382export async function checkChunkWriteAccess(
383 knowledgeBaseId: string,
384 documentId: string,
385 chunkId: string,
386 userId: string
387): Promise<ChunkAccessCheck> {
388 return resolveChunkAccess(knowledgeBaseId, documentId, chunkId, userId, true)
389}

Callers 1

route.tsFile · 0.90

Calls 1

resolveChunkAccessFunction · 0.85

Tested by

no test coverage detected