Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

3rd time lucky for #734 fix.

  • Loading branch information...
commit 1cb0628eea5be6120c4bfcbe609b3cea5f246290 1 parent f8f329b
@gunn gunn authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app/views/layouts/rails_admin/_header.html.haml
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.