Skip to content

Commit

Permalink
correct use of authorized? helper in header
Browse files Browse the repository at this point in the history
  • Loading branch information
bartocc committed Aug 31, 2011
1 parent ee9ee06 commit 2e212d2
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 2e212d2

Please sign in to comment.