Function
checkKnowledgeBaseWriteAccess
(
knowledgeBaseId: string,
userId: string
)
Source from the content-addressed store, hash-verified
| 217 | * 2. KB has no workspace (legacy): user owns the KB directly |
| 218 | */ |
| 219 | export async function checkKnowledgeBaseWriteAccess( |
| 220 | knowledgeBaseId: string, |
| 221 | userId: string |
| 222 | ): Promise<KnowledgeBaseAccessCheck> { |
| 223 | return resolveKnowledgeBaseAccess(knowledgeBaseId, userId, true) |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * Resolve document access within a knowledge base, gated by read or write |
Tested by
no test coverage detected