mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-27 16:51:01 +00:00
Add an AllRead key
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user