Made accounts and their transaction accessible to account members only.

This commit is contained in:
2026-10-11 13:28:16 +02:00
parent 21f0c17af9
commit 3faea141dd
34 changed files with 462 additions and 295 deletions
+16 -1
View File
@@ -2,7 +2,19 @@ use crate::{domain::DomainError, repository::RepositoryError, routes::extractors
#[derive(Debug, thiserror::Error)]
pub enum AppError {
#[error("app id is already in use")]
#[error("account id already exists")]
AccountIdAlreadyExists,
#[error("account id not found")]
AccountIdNotFound,
#[error("transaction id already exists")]
TransactionIdAlreadyExists,
#[error("scheduled transaction id already exists")]
ScheduledTransactionIdAlreadyExists,
#[error("app id already exists")]
AppIdAlreadyExists,
#[error("invalid client credentials")]
@@ -11,6 +23,9 @@ pub enum AppError {
#[error("invalid refresh token")]
InvalidRefreshToken,
#[error("cannot remove the last member of an account")]
LastAccountMemberRemoval,
#[error("not found")]
NotFound,