( knowledgeBaseId: string, documentId: string, userId: string )
| 272 | * Check if a user has read access to a document within a knowledge base. |
| 273 | */ |
| 274 | export async function checkDocumentAccess( |
| 275 | knowledgeBaseId: string, |
| 276 | documentId: string, |
| 277 | userId: string |
| 278 | ): Promise<DocumentAccessCheck> { |
| 279 | return resolveDocumentAccess(knowledgeBaseId, documentId, userId, false) |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | * Check if a user has write access to a specific document. |
no test coverage detected