mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 20:15:07 +08: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
@ -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…
Reference in New Issue
Block a user