git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15021
e93f8b46-1217-0410-a6f0-
8f06a7374b81
if was_activated
Mailer.account_activated(@user).deliver
- elsif @user.active? && params[:send_information] && @user.password.present? && @user.auth_source_id.nil?
+ elsif @user.active? && params[:send_information] && @user.password.present? && @user.auth_source_id.nil? && @user != User.current
Mailer.account_information(@user, @user.password).deliver
end
<%= labelled_form_for @user do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
- <% if @user.active? && email_delivery_enabled? -%>
+ <% if @user.active? && email_delivery_enabled? && @user != User.current -%>
<p><label><%= check_box_tag 'send_information', 1, true %> <%= l(:label_send_information) %></label></p>
<% end -%>
<p><%= submit_tag l(:button_save) %></p>