diff --git a/app/controllers/concerns/authentication.rb b/app/controllers/concerns/authentication.rb index 0d9ed45a4..ed4da50e4 100644 --- a/app/controllers/concerns/authentication.rb +++ b/app/controllers/concerns/authentication.rb @@ -30,9 +30,7 @@ module Authentication end def find_session_by_cookie - if token = cookies.signed[:session_token] - Session.find_signed(token) - end + Session.find_signed(cookies.signed[:session_token]) end