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
|
end
|
||||||
|
|
||||||
def fb_user_info
|
def fb_user_info
|
||||||
@access_token = env['warden'].session[:access_token]
|
if current_user
|
||||||
@logged_in = @access_token.present?
|
@access_token = env['warden'].session[:access_token]
|
||||||
|
@logged_in = @access_token.present?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue