mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-26 06:44:27 +01:00
Update an authentication comment
Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
parent
764df24b7d
commit
47748395dc
@ -199,7 +199,7 @@ pub mod policies {
|
|||||||
token: &str,
|
token: &str,
|
||||||
index: Option<&str>,
|
index: Option<&str>,
|
||||||
) -> Option<AuthFilter> {
|
) -> Option<AuthFilter> {
|
||||||
// Tenant token will always define an index.
|
// A tenant token only has access to the search route which always defines an index.
|
||||||
let index = index?;
|
let index = index?;
|
||||||
|
|
||||||
// Only search action can be accessed by a tenant token.
|
// Only search action can be accessed by a tenant token.
|
||||||
|
Loading…
Reference in New Issue
Block a user