Attachments for accounts are visible #2828

This commit is contained in:
James Cole
2020-03-19 18:20:23 +01:00
parent cdf055065f
commit 2a46756838
6 changed files with 69 additions and 49 deletions

View File

@@ -311,7 +311,7 @@ class AccountRepository implements AccountRepositoryInterface
$query = $this->user->accounts()->with(
['accountmeta' => function (HasMany $query) {
$query->where('name', 'account_role');
}]
}, 'attachments']
);
if (count($types) > 0) {
$query->accountTypeIn($types);