Improve the chat workspace REST endpoints

This commit is contained in:
Kerollmops 2025-06-10 10:21:34 +02:00
parent bc56087a17
commit e654eddf56
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
5 changed files with 72 additions and 19 deletions

View file

@ -125,12 +125,11 @@ impl HeedAuthStore {
Action::MetricsAll => {
actions.insert(Action::MetricsGet);
}
Action::ChatsAll => {
actions.extend([Action::ChatsGet, Action::ChatsDelete]);
}
Action::ChatsSettingsAll => {
actions.extend([
Action::ChatsSettingsGet,
Action::ChatsSettingsUpdate,
Action::ChatsSettingsDelete,
]);
actions.extend([Action::ChatsSettingsGet, Action::ChatsSettingsUpdate]);
}
other => {
actions.insert(*other);