(Update) Aborts

Replace `abort(403, 'Unauthorized action.’);` use with a graceful
toastr error.
This commit is contained in:
HDVinnie
2018-06-09 21:29:44 -04:00
parent b78b05fc1c
commit d24045acba
7 changed files with 19 additions and 19 deletions

View File

@@ -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']));
}
}
}