From 4ca2252e3b945a38d7ea8bf174f962cf8844b94f Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 16 Dec 2021 20:32:29 -0800 Subject: [PATCH] Switches GET to POST for request assset Signed-off-by: snipe --- resources/views/partials/bootstrap-table.blade.php | 4 ++-- routes/web.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php index a5d681bfe3..7e1bcd67fb 100644 --- a/resources/views/partials/bootstrap-table.blade.php +++ b/resources/views/partials/bootstrap-table.blade.php @@ -366,9 +366,9 @@ if (value.assigned_to_self == true){ return ''; } else if (value.available_actions.cancel == true) { - return '
'; + return '
@csrf
'; } else if (value.available_actions.request == true) { - return '
'; + return '
@csrf
'; } } diff --git a/routes/web.php b/routes/web.php index a17c511516..7aeec2701c 100644 --- a/routes/web.php +++ b/routes/web.php @@ -259,7 +259,7 @@ Route::group(['prefix' => 'account', 'middleware' => ['auth']], function () { 'requestable-assets', [ViewAssetsController::class, 'getRequestableIndex'] )->name('requestable-assets'); - Route::get( + Route::post( 'request-asset/{assetId}', [ViewAssetsController::class, 'getRequestAsset'] )->name('account/request-asset');