|
@@ -17,9 +17,9 @@ class RedirectAuthenticatedPro
|
|
public function handle($request, Closure $next)
|
|
public function handle($request, Closure $next)
|
|
{
|
|
{
|
|
$sessionKey = $request->cookie('sessionKey');
|
|
$sessionKey = $request->cookie('sessionKey');
|
|
- $appSession = AppSession::where('session_key', $sessionKey)->first();
|
|
|
|
|
|
+ $appSession = AppSession::where('session_key', $sessionKey)->where('is_active', true)->first();
|
|
|
|
|
|
- if($appSession && $appSession->is_active && $appSession->pro) {
|
|
|
|
|
|
+ if($appSession && $appSession->pro) {
|
|
return redirect()->route('dashboard');
|
|
return redirect()->route('dashboard');
|
|
}
|
|
}
|
|
|
|
|