diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb index 7026180e42..3a38f47b8f 100644 --- a/app/views/users/_form.html.erb +++ b/app/views/users/_form.html.erb @@ -45,7 +45,7 @@ See doc/COPYRIGHT.rdoc for more details. locals: { form: f } %>
<%= f.check_box :admin, :disabled => (@user == User.current) %>
- <%= call_hook(:view_users_form, :user => @user, :form => f) %> + <%= call_hook(:view_users_form, user: @user, form: f, render_heading: true) %>