Skip to content

Commit

Permalink
Avoid undefined reference usage in SiteController#logout
Browse files Browse the repository at this point in the history
  • Loading branch information
cthielen committed Jul 21, 2017
1 parent 37589b7 commit 214d16f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/site_controller.rb
Expand Up @@ -30,7 +30,11 @@ def access_denied
end

def logout
logger.info "#{current_user.log_identifier}@#{request.remote_ip}: Loaded log out page."
if current_user
logger.info "#{current_user.log_identifier}@#{request.remote_ip}: Loaded log out page."
else
logger.info "#{request.remote_ip}: Loaded log out page."
end
CASClient::Frameworks::Rails::Filter.logout(self)
end
end

0 comments on commit 214d16f

Please sign in to comment.