Skip to content
Snippets Groups Projects

Force notifications to SAML email address for dedicated users

Merged Gosia Ksionek requested to merge force-notification-to-saml-email-ee into master
All threads resolved!
1 file
+ 1
10
Compare changes
  • Side-by-side
  • Inline
- readonly = @user.read_only_attribute?(:email)
- help_text = readonly ? s_("Profiles|Your email address was automatically set based on your %{provider_label} account") % { provider_label: attribute_provider_label(:email) } : user_email_help_text(@user)
- group_managed_account = @user.group_managed_account?
- group_managed_account = @user.group_managed_account?
= form.text_field :email, required: true, class: 'input-lg', readonly: readonly || group_managed_account, value: (@user.email unless @user.temp_oauth_email?), help: help_text
= render_ce 'profiles/email_settings', form: form, group_managed_account: group_managed_account
= form.select :public_email, options_for_select(@user.all_emails, selected: @user.public_email),
{ help: s_("Profiles|This email will be displayed on your public profile"), include_blank: s_("Profiles|Do not show on profile") },
control_class: 'select2 input-lg', disabled: group_managed_account
- commit_email_docs_link = link_to s_('Profiles|Learn more'), help_page_path('user/profile/index', anchor: 'commit-email', target: '_blank')
= form.select :commit_email, options_for_select(commit_email_select_options(@user), selected: selected_commit_email(@user)),
{ help: s_("Profiles|This email will be used for web based operations, such as edits and merges. %{learn_more}").html_safe % { learn_more: commit_email_docs_link } },
control_class: 'select2 input-lg', disabled: group_managed_account
Loading