init
Some checks failed
CI / ci (push) Failing after 1m48s

This commit is contained in:
2026-08-25 23:24:36 +02:00
commit 95739892de
466 changed files with 33918 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
use domain::errors::DomainError;
use domain::user::UserId;
use crate::errors::ApplicationError;
pub fn verify_ownership(resource_owner: &UserId, caller: &UserId) -> Result<(), ApplicationError> {
if resource_owner != caller {
return Err(DomainError::Forbidden("access denied".into()).into());
}
Ok(())
}