From cbb1a71ffad4a019e1aacb1a2cd0bcacea3214ed Mon Sep 17 00:00:00 2001 From: Steven Miers Date: Tue, 4 Nov 2014 13:28:04 -0600 Subject: [PATCH] Check current_user for nil, as this dialog is included at a higher level than originally expected. --- web/app/views/shared/_google_login.html.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/views/shared/_google_login.html.slim b/web/app/views/shared/_google_login.html.slim index 676749773..d5c0592fd 100644 --- a/web/app/views/shared/_google_login.html.slim +++ b/web/app/views/shared/_google_login.html.slim @@ -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