Skip to content

Commit

Permalink
Fix incompatibility with omniauth-saml auth hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Dolski committed Mar 6, 2024
1 parent 756624e commit 0695b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/affiliation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def self.from_omniauth(attrs)
elsif level_code_attr == "1U"
key = UNDERGRADUATE_STUDENT_KEY
end
if %w(PHD CAS).include?(program_code_attr.upcase)
if program_code_attr.include?("PHD") || program_code_attr.include?("CAS")
key = PHD_STUDENT_KEY
elsif program_code_attr.present?
key = MASTERS_STUDENT_KEY
Expand Down

0 comments on commit 0695b7f

Please sign in to comment.