mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 01:38:49 -05:00
(Update) Aborts
Replace `abort(403, 'Unauthorized action.’);` use with a graceful toastr error.
This commit is contained in:
@@ -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']));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user