From aa751d8740ceabf481afa3c0a6a3db79e30b0983 Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 20 Oct 2009 17:50:50 +0200 Subject: only if you are already admin --- app/views/users/edit.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb index dae13ce..79f3bb7 100644 --- a/app/views/users/edit.html.erb +++ b/app/views/users/edit.html.erb @@ -18,10 +18,12 @@ Confirm <%= f.text_field :password_confirmation %> + <% if current_user.admin? %> Admin? <%= f.check_box :admin %> + <% end %> <%= f.submit "Update" %> -- cgit v1.3