Commit 51a6bc047f305f7fc221114fb868500a8088136d

Authored by Jared Pace
1 parent 9558cd2a
Exists in master and in 1 other branch production

Only let admins view/manage users

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
app/views/shared/_navigation.html.haml
... ... @@ -3,5 +3,6 @@
3 3 //%li= link_to 'Dashboard', admin_dashboard_path, :class => active_if_here(:dashboards)
4 4 %li.apps{:class => active_if_here(:apps)}= link_to 'Apps', apps_path
5 5 %li.errs{:class => active_if_here(:errs)}= link_to 'Errs', errs_path
6   - %li.users{:class => active_if_here(:users)}= link_to 'Users', users_path
  6 + - if user_signed_in? && current_user.admin?
  7 + %li.users{:class => active_if_here(:users)}= link_to 'Users', users_path
7 8 %div.clear
8 9 \ No newline at end of file
... ...