From 51a6bc047f305f7fc221114fb868500a8088136d Mon Sep 17 00:00:00 2001 From: Jared Pace Date: Wed, 11 Aug 2010 21:30:54 -0400 Subject: [PATCH] Only let admins view/manage users --- app/views/shared/_navigation.html.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_navigation.html.haml b/app/views/shared/_navigation.html.haml index 84f05a4..128da93 100644 --- a/app/views/shared/_navigation.html.haml +++ b/app/views/shared/_navigation.html.haml @@ -3,5 +3,6 @@ //%li= link_to 'Dashboard', admin_dashboard_path, :class => active_if_here(:dashboards) %li.apps{:class => active_if_here(:apps)}= link_to 'Apps', apps_path %li.errs{:class => active_if_here(:errs)}= link_to 'Errs', errs_path - %li.users{:class => active_if_here(:users)}= link_to 'Users', users_path + - if user_signed_in? && current_user.admin? + %li.users{:class => active_if_here(:users)}= link_to 'Users', users_path %div.clear \ No newline at end of file -- libgit2 0.21.2