Skip to content

Commit

Permalink
Increase page count
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbruce committed Jan 5, 2024
1 parent 8403e98 commit 1e2f673
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/saml_sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def update_provider_details

def show_office_select?
[
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
page_history.last(10).include?("/"), # recently seen the root path
page_history.last(10).grep(/\/\?locale=.*$/).any?, # 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 1e2f673

Please sign in to comment.