Add lots of audit logs.

This commit is contained in:
James Cole
2023-12-29 08:19:04 +01:00
parent ec43d10e35
commit 6381d04e2b
12 changed files with 32 additions and 3 deletions

View File

@@ -28,6 +28,7 @@ use FireflyIII\Models\Webhook;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Contracts\View\Factory;
use Illuminate\Contracts\View\View;
use Illuminate\Support\Facades\Log;
/**
* Class EditController
@@ -60,8 +61,9 @@ class EditController extends Controller
*/
public function index(Webhook $webhook)
{
Log::channel('audit')->info('User visits webhook edit page.');
$subTitle = (string)trans('firefly.edit_webhook', ['title' => $webhook->title]);
$this->rememberPreviousUrl('webhooks.delete.url');
$this->rememberPreviousUrl('webhooks.edit.url');
return view('webhooks.edit', compact('webhook', 'subTitle'));
}