From 1bc8302ca6b80c9531af1693a02048ad67f2fbd8 Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Tue, 8 Mar 2016 14:21:43 +0000 Subject: [PATCH] updated call to direct_login? for new core --- lib/open_project/openid_connect/sso_logout.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/open_project/openid_connect/sso_logout.rb b/lib/open_project/openid_connect/sso_logout.rb index eb3e422be0..5ce318b5c9 100644 --- a/lib/open_project/openid_connect/sso_logout.rb +++ b/lib/open_project/openid_connect/sso_logout.rb @@ -2,6 +2,7 @@ module OpenProject module OpenIDConnect module SSOLogout include LobbyBoy::SessionHelper + include ::OmniauthHelper def session_expired? super || (current_user.logged? && id_token_expired?) @@ -29,7 +30,7 @@ module OpenProject end # If the user may view the site without being logged in we redirect back to it. - site_open = !(Setting.login_required? && ::Concerns::OmniauthLogin.direct_login?) + site_open = !(Setting.login_required? && omniauth_direct_login?) return_url = site_open && "#{Setting.protocol}://#{Setting.host_name}" if logout_at_op! return_url