fix the api keys for the tasks route

This commit is contained in:
Irevoire 2022-10-22 12:52:36 +02:00 committed by Tamo
parent 8a39be9d41
commit 950606cd36
3 changed files with 4 additions and 3 deletions

View file

@ -99,6 +99,7 @@ impl HeedAuthStore {
Action::IndexesDelete,
Action::IndexesGet,
Action::IndexesUpdate,
Action::IndexesSwap,
]
.iter(),
);
@ -110,7 +111,7 @@ impl HeedAuthStore {
actions.insert(Action::DumpsCreate);
}
Action::TasksAll => {
actions.insert(Action::TasksGet);
actions.extend([Action::TasksGet, Action::TasksDelete, Action::TasksCancel]);
}
Action::StatsAll => {
actions.insert(Action::StatsGet);