mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 11:39:19 -05:00
(Update) Middleware 🚀
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user