mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 00:31:02 +00:00
Fix AllGet action being included in All
This commit is contained in:
@ -88,7 +88,10 @@ impl HeedAuthStore {
|
|||||||
let mut actions = HashSet::new();
|
let mut actions = HashSet::new();
|
||||||
for action in &key.actions {
|
for action in &key.actions {
|
||||||
match action {
|
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::AllGet => actions.extend(enum_iterator::all::<Action>().filter(|a| a.is_read())),
|
||||||
Action::DocumentsAll => {
|
Action::DocumentsAll => {
|
||||||
actions.extend(
|
actions.extend(
|
||||||
|
Reference in New Issue
Block a user