Browse Source

Fix crash

Maarten van den Berg 6 years ago
parent
commit
9c1926950b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/helpers/authentication_helper.rb

+ 1 - 1
app/helpers/authentication_helper.rb

60
   def logged_in?
60
   def logged_in?
61
     # Case 1: User has an active session inside the cookie.
61
     # Case 1: User has an active session inside the cookie.
62
     # We verify that the session hasn't expired yet.
62
     # We verify that the session hasn't expired yet.
63
-    if session[:user_id] && session[:expires]&.future?
63
+    if session[:user_id] && session[:expires]&.to_datetime&.future?
64
 
64
 
65
       user_session
65
       user_session
66
 
66