|
@@ -18,7 +18,7 @@ class EnsureAdminRole
|
|
|
if (!User::isLoggedIn($sessionKey)) return redirect(route('admin.dashboard'));
|
|
|
$performer = AppSession::where('session_key', $sessionKey)->where('is_active', true)->first();
|
|
|
if(!$performer->user->is_super_admin){
|
|
|
- dd('You are not an admin', $performer->user);
|
|
|
+ dd('You are not an admin');
|
|
|
}
|
|
|
|
|
|
return $next($request);
|