Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alihadimazeh committed Aug 9, 2024
1 parent b10f8c5 commit a6076a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/controllers/api/v1/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,12 @@ def valid_invite_token
def valid_domain?
specific_domain_emails = SettingGetter.new(setting_name: 'SpecificEmailDomainSignUp', provider: current_provider).call
return true if specific_domain_emails.blank?

domains = specific_domain_emails.split(',')
domains.each do |domain|
return true if create_user_params[:email].end_with?(domain)
end
return false
false
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/services/tenant_setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def create_site_settings
{ setting: Setting.find_by(name: 'DefaultRecordingVisibility'), provider: @provider, value: 'Published' },
{ setting: Setting.find_by(name: 'Maintenance'), provider: @provider, value: '' },
{ setting: Setting.find_by(name: 'SessionTimeout'), provider: @provider, value: '1' },
{ setting: Setting.find_by(name: 'SpecificEmailDomainSignUp'), value: '', provider: @provider },
{ setting: Setting.find_by(name: 'SpecificEmailDomainSignUp'), value: '', provider: @provider }
]
end

Expand Down

0 comments on commit a6076a6

Please sign in to comment.