mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Fix AllGet action being included in All
This commit is contained in:
parent
9e1cb792f4
commit
5081d837ea
1 changed files with 4 additions and 1 deletions
|
@ -88,7 +88,10 @@ impl HeedAuthStore {
|
|||
let mut actions = HashSet::new();
|
||||
for action in &key.actions {
|
||||
match action {
|
||||
Action::All => actions.extend(enum_iterator::all::<Action>()),
|
||||
Action::All => {
|
||||
actions.extend(enum_iterator::all::<Action>());
|
||||
actions.remove(&Action::AllGet);
|
||||
},
|
||||
Action::AllGet => actions.extend(enum_iterator::all::<Action>().filter(|a| a.is_read())),
|
||||
Action::DocumentsAll => {
|
||||
actions.extend(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue