mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
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:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user