checking that a user is logged in before doing fb checking
This commit is contained in:
parent
08b9aa864a
commit
7b29e6ec26
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue