Skip to content

Commit

Permalink
fix: ensure we do not ask to accept eula if not required
Browse files Browse the repository at this point in the history
  • Loading branch information
macite committed Dec 1, 2023
1 parent c7de571 commit 3df2ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/entities/user_entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ class UserEntity < Grape::Entity
expose :has_run_first_time_setup, unless: :minimal

expose :accepted_tii_eula, unless: :minimal, if: ->(user, options) { Doubtfire::Application.config.tii_enabled } do |user, options|
return true unless TiiActionFetchFeaturesEnabled.eula_required?

TurnItIn.eula_version == user.tii_eula_version
end

Expand Down

0 comments on commit 3df2ade

Please sign in to comment.