diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 542e5eac87..fc793906c0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -47,10 +47,9 @@ def store_location end def authenticate_user_from_jwt_token! - shared_login = helpers.check_for_setting_value_in_tenant_settings("shared_login") token = get_auth_token - if shared_login.present? && token.present? + if token.present? api_user = User.find_by(id: token) end if token.present? && api_user.present?