Fix onboarding with implicit terms acceptance (#20117)
This commit is contained in:
parent
c72c52dfdb
commit
612c402887
1 changed files with 7 additions and 0 deletions
|
|
@ -2,6 +2,13 @@ class ProfileFieldGroupsController < ApplicationController
|
|||
def index
|
||||
relation = ProfileFieldGroup.includes(:profile_fields)
|
||||
@profile_field_groups = onboarding? ? relation.onboarding : relation.all
|
||||
if onboarding?
|
||||
current_user.update(
|
||||
saw_onboarding: true,
|
||||
checked_code_of_conduct: true,
|
||||
checked_terms_and_conditions: true,
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue