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

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1449 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2008-05-25 11:22:53 +00:00
parent 7f134a8c67
commit 39fc8f38b8
1 changed files with 1 additions and 1 deletions

View File

@ -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">