(cloudKey: string, context: 'profile-pictures' | 'og-images' | 'workspace-logos')
| 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) |
no test coverage detected