(Update) Middleware 🚀

This commit is contained in:
HDVinnie
2019-03-13 08:33:43 -04:00
parent 566aa64bad
commit 3c255f91fe
4 changed files with 4 additions and 12 deletions
+1 -3
View File
@@ -28,9 +28,7 @@ class CheckForModo
*/
public function handle($request, Closure $next)
{
if (! auth()->check() || ! auth()->user()->group->is_modo) {
return abort(403);
}
abort_unless(auth()->user()->group->is_modo, 403);
return $next($request);
}