(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
+1 -1
View File
@@ -134,7 +134,7 @@ class AlbumController extends Controller
return redirect()->route('home')
->with(Toastr::success('Album has successfully been deleted', 'Yay!', ['options']));
} else {
abort(403, 'Unauthorized action.');
return back()->with(Toastr::error('You Are Not Authorized To Perform This Action!', 'Error 403', ['options']));
}
}
}