mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Attachments for accounts are visible #2828
This commit is contained in:
@@ -103,6 +103,7 @@ class ShowController extends Controller
|
||||
[$start, $end] = [$end, $start]; // @codeCoverageIgnore
|
||||
}
|
||||
$location = $this->repository->getLocation($account);
|
||||
$attachments = $this->repository->getAttachments($account);
|
||||
$objectType = config(sprintf('firefly.shortNamesByFullName.%s', $account->accountType->type));
|
||||
$today = new Carbon;
|
||||
$subTitleIcon = config(sprintf('firefly.subIconsByIdentifier.%s', $account->accountType->type));
|
||||
@@ -139,6 +140,7 @@ class ShowController extends Controller
|
||||
'periods',
|
||||
'subTitleIcon',
|
||||
'groups',
|
||||
'attachments',
|
||||
'subTitle',
|
||||
'start',
|
||||
'end',
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user