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 2a51161258
commit cf58a76faf
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
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(),