MCPcopy
hub / github.com/simstudioai/sim / write

Function write

apps/sim/app/api/files/authorization.test.ts:167–169  ·  view source on GitHub ↗
(cloudKey: string, context: 'profile-pictures' | 'og-images' | 'workspace-logos')

Source from the content-addressed store, hash-verified

165 }
166
167 function write(cloudKey: string, context: 'profile-pictures' | 'og-images' | 'workspace-logos') {
168 return verifyFileAccess(cloudKey, USER_ID, undefined, context, false, { requireWrite: true })
169 }
170
171 it('grants public reads without any ownership check', async () => {
172 await expect(read('og-images/banner.png', 'og-images')).resolves.toBe(true)

Callers 1

Calls 1

verifyFileAccessFunction · 0.90

Tested by

no test coverage detected