Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/simstudioai/sim
/ authorization.test.ts
File
authorization.test.ts
apps/sim/app/api/files/authorization.test.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
/**
2
* Tests
for
KB file authorization (`verifyKBFileAccess` via `verifyFileAccess`).
3
*
4
* These lock in the security-critical contract: access is granted only when a
Callers
nothing calls this directly
Calls
4
verifyKBFileWriteAccess
Function · 0.90
grantAccess
Function · 0.85
read
Function · 0.70
write
Function · 0.70
Tested by
no test coverage detected