lib/gds-sso/controller_methods.rb in gds-sso-9.1.1 vs lib/gds-sso/controller_methods.rb in gds-sso-9.1.2

- old
+ new

@@ -38,14 +38,14 @@ end warden.authenticate! end def user_remotely_signed_out? - warden.authenticated? && warden.user.remotely_signed_out? + warden && warden.authenticated? && warden.user.remotely_signed_out? end def user_signed_in? - warden.authenticated? && ! warden.user.remotely_signed_out? + warden && warden.authenticated? && ! warden.user.remotely_signed_out? end def current_user warden.user if user_signed_in? end