Skip to content

Commit

Permalink
add missing foreign key validation
Browse files Browse the repository at this point in the history
  • Loading branch information
olaszakos committed Nov 21, 2024
1 parent 82d0a97 commit f9f173f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/station/impl/src/models/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ fn validate_request_operation_foreign_keys(
RequestOperation::ManageSystemInfo(_) => (),
RequestOperation::Transfer(op) => {
EnsureAccount::id_exists(&op.input.from_account_id)?;
EnsureAsset::id_exists(&op.input.from_asset_id)?;
}
RequestOperation::AddAccount(op) => {
op.input.read_permission.validate()?;
Expand Down

0 comments on commit f9f173f

Please sign in to comment.