mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Update meilisearch/src/extractors/authentication/mod.rs
Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
parent
7da21bb601
commit
a1dcde6b9a
1 changed files with 2 additions and 1 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue