Fixes #3651 - backups not working

This commit is contained in:
snipe 2017-06-09 12:44:11 -07:00
parent 0bc709206f
commit e387673e74
2 changed files with 8 additions and 9 deletions

View file

@ -29,14 +29,13 @@
<td>{{ date("M d, Y g:i A", $file['modified']) }} </td>
<td>{{ $file['filesize'] }}</td>
<td>
{{ Helper::generateDatatableButton(
'delete',
route('settings/delete-file', $file['filename']),
config('app.lock_passwords'),
trans('admin/settings/message.backup.delete_confirm'),
$file['filename']
)
}}
@can('superadmin')
<a data-html="false"
class="btn delete-asset btn-danger btn-sm {{ (config('app.lock_passwords')) ? ' disabled': '' }}" data-toggle="modal" href=" {{ route('settings/delete-file', $file['filename']) }}" data-content="{{ trans('admin/settings/message.backup.delete_confirm') }}" data-title="{{ trans('general.delete') }} {{ htmlspecialchars($file['filename']) }} ?" onClick="return false;">
<i class="fa fa-trash icon-white"></i>
</a>
@endcan
</td>
</tr>
@endforeach

View file

@ -144,7 +144,7 @@ Route::group([ 'prefix' => 'admin','middleware' => ['auth']], function () {
'as' => 'settings/download-file',
'uses' => 'SettingsController@downloadFile' ]);
Route::get('delete/{filename}', [
Route::delete('delete/{filename}', [
'as' => 'settings/delete-file',
'uses' => 'SettingsController@deleteFile' ]);