mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 03:24:09 +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:
@@ -12,7 +12,7 @@ class Assistant::Function::GetAccounts < Assistant::Function
|
||||
def call(params = {})
|
||||
{
|
||||
as_of_date: Date.current,
|
||||
accounts: family.accounts.includes(:balances, :account_providers).map do |account|
|
||||
accounts: user.accessible_accounts.includes(:balances, :account_providers).map do |account|
|
||||
{
|
||||
name: account.name,
|
||||
balance: account.balance,
|
||||
|
||||
Reference in New Issue
Block a user