Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions finbot/mcp/servers/finstripe/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ def create_transfer(
Transfers funds from the company account to a vendor's bank account.
Returns the transfer details including a unique transfer ID for tracking.
"""
if (
getattr(session_context, "portal_type", None) == "vendor"
and getattr(session_context, "current_vendor_id", None) is not None
and session_context.current_vendor_id != vendor_id
):
return {"error": "Vendor session can only initiate transfers to own account"}

transfer_id = _generate_transfer_id()

with db_session() as db:
Expand Down
Loading