mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Re-authorize master_key to access to all routes
This commit is contained in:
parent
1816db8c1f
commit
b2e2dc8558
2 changed files with 3 additions and 30 deletions
|
@ -177,7 +177,7 @@ pub mod policies {
|
|||
// if master key is None only keys routes are inaccessible.
|
||||
if auth
|
||||
.get_master_key()
|
||||
.map_or_else(|| !is_keys_action(A), |mk| mk == token && is_keys_action(A))
|
||||
.map_or_else(|| !is_keys_action(A), |mk| mk == token)
|
||||
{
|
||||
return Some(AuthFilter::default());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue