Add an AllRead key

This commit is contained in:
Mubelotix
2025-06-19 11:29:16 +02:00
parent 00eb258a53
commit b421c8e7de
2 changed files with 49 additions and 0 deletions

View File

@ -89,6 +89,7 @@ impl HeedAuthStore {
for action in &key.actions {
match action {
Action::All => actions.extend(enum_iterator::all::<Action>()),
Action::AllRead => actions.extend(enum_iterator::all::<Action>().filter(|a| a.is_read())),
Action::DocumentsAll => {
actions.extend(
[Action::DocumentsGet, Action::DocumentsDelete, Action::DocumentsAdd]