Editing documents requires the documents.all action (add, get, and del)

This commit is contained in:
Clément Renault 2024-05-14 21:54:35 +02:00
parent 81ec0abad1
commit 862d49e4af
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -587,7 +587,7 @@ pub struct DocumentEditionByFunction {
}
pub async fn edit_documents_by_function(
index_scheduler: GuardedData<ActionPolicy<{ actions::DOCUMENTS_ADD }>, Data<IndexScheduler>>,
index_scheduler: GuardedData<ActionPolicy<{ actions::DOCUMENTS_ALL }>, Data<IndexScheduler>>,
index_uid: web::Path<String>,
body: AwebJson<DocumentEditionByFunction, DeserrJsonError>,
req: HttpRequest,