Permalink
Browse files

3rd time lucky for #734 fix.

  • Loading branch information...
1 parent f8f329b commit 1cb0628eea5be6120c4bfcbe609b3cea5f246290 @gunn gunn committed Oct 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/views/layouts/rails_admin/_header.html.haml
@@ -8,6 +8,6 @@
%li= link_to header_icon(:home, t('home.name').capitalize), main_app_root_path
- if _current_user
- if authorized?(:edit, _current_user.class, _current_user)
- %li= link_to header_icon(:account, _current_user.respond_to?(:email)), edit_path(_current_user.class.name.underscore.pluralize, _current_user)
+ %li= link_to header_icon(:account, _current_user.respond_to?(:email) && _current_user.email), edit_path(_current_user.class.name.underscore.pluralize, _current_user)
- if defined?(Devise)
%li= link_to header_icon(:logout, t('admin.credentials.log_out')), main_app.url_for(:action => 'destroy', :controller => 'devise/sessions'), :method => Devise.sign_out_via

0 comments on commit 1cb0628

Please sign in to comment.