mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
Fix the new config file with the index scheduler
This commit is contained in:
parent
2a51161258
commit
cf58a76faf
3 changed files with 58 additions and 15 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue