mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
Fix #9882
This commit is contained in:
@@ -90,6 +90,7 @@ class StoreController extends Controller
|
|||||||
$data['user'] = auth()->user();
|
$data['user'] = auth()->user();
|
||||||
$data['user_group'] = $this->userGroup;
|
$data['user_group'] = $this->userGroup;
|
||||||
|
|
||||||
|
|
||||||
Log::channel('audit')->info('Store new transaction over API.', $data);
|
Log::channel('audit')->info('Store new transaction over API.', $data);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@@ -73,6 +73,7 @@ class StoreController extends Controller
|
|||||||
$userGroup = $request->getUserGroup();
|
$userGroup = $request->getUserGroup();
|
||||||
$data['user_group'] = $userGroup;
|
$data['user_group'] = $userGroup;
|
||||||
|
|
||||||
|
|
||||||
// overrule user group and see where we end up.
|
// overrule user group and see where we end up.
|
||||||
// what happens when we refer to a budget that is not in this user group?
|
// what happens when we refer to a budget that is not in this user group?
|
||||||
|
|
||||||
|
@@ -238,7 +238,8 @@ class UpgradesToGroups extends Command
|
|||||||
return [
|
return [
|
||||||
'type' => strtolower($journal->transactionType->type),
|
'type' => strtolower($journal->transactionType->type),
|
||||||
'date' => $journal->date,
|
'date' => $journal->date,
|
||||||
'user' => $journal->user_id,
|
'user' => $journal->user,
|
||||||
|
'user_group' => $journal->user->userGroup,
|
||||||
'currency_id' => $transaction->transaction_currency_id,
|
'currency_id' => $transaction->transaction_currency_id,
|
||||||
'foreign_currency_id' => $transaction->foreign_currency_id,
|
'foreign_currency_id' => $transaction->foreign_currency_id,
|
||||||
'amount' => $transaction->amount,
|
'amount' => $transaction->amount,
|
||||||
|
@@ -229,7 +229,8 @@ class ReconcileController extends Controller
|
|||||||
'group_title' => null,
|
'group_title' => null,
|
||||||
'transactions' => [
|
'transactions' => [
|
||||||
[
|
[
|
||||||
'user' => auth()->user()->id,
|
'user' => auth()->user(),
|
||||||
|
'user_group' => auth()->user()->userGroup,
|
||||||
'type' => strtolower(TransactionTypeEnum::RECONCILIATION->value),
|
'type' => strtolower(TransactionTypeEnum::RECONCILIATION->value),
|
||||||
'date' => $end,
|
'date' => $end,
|
||||||
'order' => 0,
|
'order' => 0,
|
||||||
|
Reference in New Issue
Block a user