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:
parent
7f134a8c67
commit
39fc8f38b8
|
@ -12,7 +12,7 @@
|
||||||
<p><%= custom_field_tag_with_label @custom_value %></p>
|
<p><%= custom_field_tag_with_label @custom_value %></p>
|
||||||
<% end if @custom_values%>
|
<% end if @custom_values%>
|
||||||
|
|
||||||
<p><%= f.check_box :admin %></p>
|
<p><%= f.check_box :admin, :disabled => (@user == User.current) %></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
|
|
Loading…
Reference in New Issue