mirror of
https://github.com/snipe/snipe-it.git
synced 2026-02-05 22:05:51 +00:00
Log user initiating a purge
This commit is contained in:
@ -1158,6 +1158,8 @@ class SettingsController extends Controller
|
||||
{
|
||||
if (! config('app.lock_passwords')) {
|
||||
if ('DELETE' == $request->input('confirm_purge')) {
|
||||
|
||||
\Log::warning('User ID '.Auth::user()->id.' initiated a PURGE!');
|
||||
// Run a backup immediately before processing
|
||||
Artisan::call('backup:run');
|
||||
Artisan::call('snipeit:purge', ['--force' => 'true', '--no-interaction' => true]);
|
||||
|
||||
Reference in New Issue
Block a user