checking that a user is logged in before doing fb checking

This commit is contained in:
ilya 2010-09-27 15:50:52 -07:00
parent 08b9aa864a
commit 7b29e6ec26

View file

@ -40,8 +40,10 @@ class ApplicationController < ActionController::Base
end
def fb_user_info
@access_token = env['warden'].session[:access_token]
@logged_in = @access_token.present?
if current_user
@access_token = env['warden'].session[:access_token]
@logged_in = @access_token.present?
end
end
end