Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

3rd time lucky for #734 fix.

  • Loading branch information...
commit 1cb0628eea5be6120c4bfcbe609b3cea5f246290 1 parent f8f329b
Arthur Gunn gunn authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  app/views/layouts/rails_admin/_header.html.haml
2  app/views/layouts/rails_admin/_header.html.haml
@@ -8,6 +8,6 @@
8 8 %li= link_to header_icon(:home, t('home.name').capitalize), main_app_root_path
9 9 - if _current_user
10 10 - if authorized?(:edit, _current_user.class, _current_user)
11   - %li= link_to header_icon(:account, _current_user.respond_to?(:email)), edit_path(_current_user.class.name.underscore.pluralize, _current_user)
  11 + %li= link_to header_icon(:account, _current_user.respond_to?(:email) && _current_user.email), edit_path(_current_user.class.name.underscore.pluralize, _current_user)
12 12 - if defined?(Devise)
13 13 %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.
Something went wrong with that request. Please try again.