mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Add some audit things.
This commit is contained in:
@@ -118,6 +118,8 @@ class CreateController extends Controller
|
|||||||
$request->session()->flash('success', (string)trans('firefly.stored_new_budget', ['name' => $budget->name]));
|
$request->session()->flash('success', (string)trans('firefly.stored_new_budget', ['name' => $budget->name]));
|
||||||
app('preferences')->mark();
|
app('preferences')->mark();
|
||||||
|
|
||||||
|
Log::channel('audit')->info('Stored new budget.', $data);
|
||||||
|
|
||||||
// store attachment(s):
|
// store attachment(s):
|
||||||
/** @var null|array $files */
|
/** @var null|array $files */
|
||||||
$files = $request->hasFile('attachments') ? $request->file('attachments') : null;
|
$files = $request->hasFile('attachments') ? $request->file('attachments') : null;
|
||||||
|
@@ -126,6 +126,8 @@ class EditController extends Controller
|
|||||||
$this->repository->cleanupBudgets();
|
$this->repository->cleanupBudgets();
|
||||||
app('preferences')->mark();
|
app('preferences')->mark();
|
||||||
|
|
||||||
|
Log::channel('audit')->info(sprintf('Updated budget #%d.', $budget->id), $data);
|
||||||
|
|
||||||
$redirect = redirect($this->getPreviousUrl('budgets.edit.url'));
|
$redirect = redirect($this->getPreviousUrl('budgets.edit.url'));
|
||||||
|
|
||||||
// store new attachment(s):
|
// store new attachment(s):
|
||||||
|
Reference in New Issue
Block a user