Add vault-level access control
This commit is contained in:
parent
a8c813b9a7
commit
b3e98d32b6
1 changed files with 86 additions and 41 deletions
|
|
@ -37,7 +37,7 @@ pub async fn fetch_document_version_content(
|
|||
}): Path<FetchDocumentVersionContentPathParams>,
|
||||
State(state): State<AppState>,
|
||||
) -> Result<Bytes, SyncServerError> {
|
||||
auth(&state, auth_header.token())?;
|
||||
auth(&state, auth_header.token(), &vault_id)?;
|
||||
|
||||
let result = state
|
||||
.database
|
||||
|
|
|
|||
Loading…
Reference in a new issue