Update an authentication comment

Co-authored-by: Many the fish <many@meilisearch.com>
This commit is contained in:
Clément Renault 2023-02-13 17:20:08 +01:00 committed by GitHub
parent 764df24b7d
commit 47748395dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.