Fix the new config file with the index scheduler

This commit is contained in:
Clément Renault
2022-10-20 16:49:19 +02:00
parent 72ec4ce96b
commit 61edcd585a
3 changed files with 58 additions and 15 deletions

View File

@ -96,7 +96,7 @@ pub async fn create_index(
) -> Result<HttpResponse, ResponseError> {
let IndexCreateRequest { primary_key, uid } = body.into_inner();
let allow_index_creation = meilisearch.filters().search_rules.is_index_authorized(&uid);
let allow_index_creation = index_scheduler.filters().search_rules.is_index_authorized(&uid);
if allow_index_creation {
analytics.publish(
"Index Created".to_string(),