Add vault-level access control

This commit is contained in:
Andras Schmelczer 2025-03-29 12:25:15 +00:00
commit b3e98d32b6
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C

View file

@ -33,7 +33,7 @@ pub async fn fetch_latest_document_version(
}): Path<FetchLatestDocumentVersionPathParams>,
State(state): State<AppState>,
) -> Result<Json<DocumentVersion>, SyncServerError> {
auth(&state, auth_header.token())?;
auth(&state, auth_header.token(), &vault_id)?;
let latest_version = state
.database