Commit 39fc8f38 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

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

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1449 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7f134a8c
......@@ -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">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment