Check current_user for nil, as this dialog is included at a higher level than originally expected.

This commit is contained in:
Steven Miers 2014-11-04 13:28:04 -06:00
parent 34695c716b
commit cbb1a71ffa
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
-google_auth = JamRuby::UserAuthorization.google_auth(current_user).first
-google_auth = (current_user.nil?) ? nil : JamRuby::UserAuthorization.google_auth(current_user).first
-if google_auth
span.signed_in_to_google="(Signed in)"
-else