Skip to content

Commit

Permalink
Merge pull request railsadminteam#684 from bartocc/issue_683
Browse files Browse the repository at this point in the history
correct use of authorized? helper in header
  • Loading branch information
bbenezech committed Aug 31, 2011
2 parents c458f14 + 2e212d2 commit dc9a950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/rails_admin/_header.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
%ul.wat-cf
%li= link_to header_icon(:config, t('admin.dashboard.name')), dashboard_path
%li= link_to header_icon(:home, t('home.name').capitalize), (root_path rescue '/')
%li= link_to header_icon(:account, _current_user.email), (edit_path(:user, _current_user) rescue '#') if authorized?(:edit, _current_user)
%li= link_to header_icon(:account, _current_user.email), (edit_path(:user, _current_user) rescue '#') if authorized?(:edit, nil, _current_user)
%li= link_to header_icon(:logout, t("admin.credentials.log_out")), (destroy_user_session_path rescue '/users/sign_out'), :method => (Devise.sign_out_via rescue :delete)

0 comments on commit dc9a950

Please sign in to comment.