Code improvements
This commit is contained in:
@@ -15,7 +15,7 @@ class MainAdminRoleMiddleware
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (!auth()->check()) {
|
||||
if (currentUser() === null) {
|
||||
return redirect('/login')->with('message', 'Du musst eingeloggt sein.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user