Return nil if no user is signed in

This commit is contained in:
Sebastian Serth
2020-10-28 14:52:04 +01:00
parent 10bbc68829
commit eedbf6a815
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ class SessionsController < ApplicationController
end
def destroy
if current_user.external_user?
if current_user&.external_user?
clear_lti_session_data
else
logout