mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-01-30 07:50:11 -06:00
(Update) Aborts
Replace `abort(403, 'Unauthorized action.’);` use with a graceful toastr error.
This commit is contained in:
@@ -743,7 +743,7 @@ class RequestController extends Controller
|
||||
->with(Toastr::error("Nothing To Unclaim.", 'Whoops!', ['options']));
|
||||
}
|
||||
} else {
|
||||
abort(403, 'Unauthorized action.');
|
||||
return back()->with(Toastr::error('You Are Not Authorized To Perform This Action!', 'Error 403', ['options']));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user