Update meilisearch/src/extractors/authentication/mod.rs

Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
Tamo 2024-06-26 14:00:21 +02:00 committed by GitHub
parent 7da21bb601
commit a1dcde6b9a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,7 +277,8 @@ pub mod policies {
index: index.to_string(), index: index.to_string(),
}); });
} else { } else {
// Otherwise we can share the // Otherwise we can share the list
// of authorized indexes in the API key.
return Err(AuthError::ApiKeyAccessingnUnauthorizedIndex { return Err(AuthError::ApiKeyAccessingnUnauthorizedIndex {
index: index.to_string(), index: index.to_string(),
allowed: auth_filter.api_key_list_index_authorized(), allowed: auth_filter.api_key_list_index_authorized(),