Providers sharing (#1273)

* third party provider scoping

* Simplify logic and allow only admins to mange providers

* Broadcast fixes

* FIX tests and build

* Fixes

* Reviews

* Scope merchants

* DRY fixes
This commit is contained in:
soky srm
2026-03-25 17:47:04 +01:00
committed by GitHub
parent 1627cf197b
commit 9410e5b38d
74 changed files with 588 additions and 583 deletions

View File

@@ -74,8 +74,11 @@ class PlaidAccount::Processor
cash_balance: balance_calculator.cash_balance
)
new_account = account.new_record?
account.save!
account.auto_share_with_family! if new_account && account.family.share_all_by_default?
# Create account provider link if it doesn't exist
unless account_provider
AccountProvider.find_or_create_by!(