Skip to content

Commit

Permalink
Update checks
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbruce committed Jan 5, 2024
1 parent 7ab7278 commit 8403e98
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/saml_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def update_provider_details

def show_office_select?
[
page_history.include?("/"),
page_history.include?(/\/\?locale=.{2}/),
Rails.configuration.x.laa_portal.mock_saml,
page_history.last(3).include?("/"), # recently seen the root path
page_history.last(3).include?(/\/\?locale=.{2}/), # recently seen the root path with a locale
ActiveRecord::Type::Boolean.new.cast(Rails.configuration.x.laa_portal.mock_saml) || false, # mock_saml is true
].any?(true)
end

Expand Down

0 comments on commit 8403e98

Please sign in to comment.