Fix AllGet action being included in All

This commit is contained in:
Mubelotix 2025-06-19 12:12:30 +02:00
parent 9e1cb792f4
commit 5081d837ea
No known key found for this signature in database
GPG key ID: 89F391DBCC8CE7F0

View file

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