diff options
Diffstat (limited to 'app/views/users/show.html.erb')
-rw-r--r-- | app/views/users/show.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 9bb5d6667..b44ed6a3f 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,5 +1,5 @@ <div class="contextual"> -<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> +<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? && @user.logged? %> </div> <h2><%= avatar @user, :size => "50" %> <%= @user.name %></h2> |