@@ -139,3 +139,11 @@ Route::middleware(['auth', 'verified', 'can:manage-portal'])->prefix('management
|
||||
Route::post('{resource}', [$controller, 'save'])->whereIn('resource', ['sectors', 'opportunities'])->name('store');
|
||||
Route::put('{resource}/{id}', [$controller, 'save'])->whereIn('resource', ['sectors', 'opportunities'])->whereNumber('id')->name('update');
|
||||
});
|
||||
|
||||
// Serialize management requests for the same session so background dropdown/coordinate
|
||||
// reads cannot overwrite validation feedback from a concurrent form submission.
|
||||
foreach (Route::getRoutes() as $managementRoute) {
|
||||
if (str_starts_with($managementRoute->uri(), 'management/')) {
|
||||
$managementRoute->block(10, 10);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user