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

View File

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