Prevent admin users from making themselves non-administrator (#1276).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1449 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/351/head
Jean-Philippe Lang 17 years ago
parent 7f134a8c67
commit 39fc8f38b8
  1. 2
      app/views/users/_form.rhtml

@ -12,7 +12,7 @@
<p><%= custom_field_tag_with_label @custom_value %></p>
<% end if @custom_values%>
<p><%= f.check_box :admin %></p>
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
</div>
<div class="box">

Loading…
Cancel
Save