From 16d50321437069fb92d12cd94a0ab69c56afd5fd Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Fri, 26 Jul 2013 18:58:40 -0400 Subject: [PATCH] hide groups nav link from non-admins --- app/assets/javascripts/admin/templates/admin.js.handlebars | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/templates/admin.js.handlebars b/app/assets/javascripts/admin/templates/admin.js.handlebars index 566a69885..97ac7c58e 100644 --- a/app/assets/javascripts/admin/templates/admin.js.handlebars +++ b/app/assets/javascripts/admin/templates/admin.js.handlebars @@ -9,7 +9,9 @@
  • {{#linkTo 'adminSiteContents'}}{{i18n admin.site_content.title}}{{/linkTo}}
  • {{/if}}
  • {{#linkTo 'adminUsersList'}}{{i18n admin.users.title}}{{/linkTo}}
  • -
  • {{#linkTo 'admin.groups'}}{{i18n admin.groups.title}}{{/linkTo}}
  • + {{#if currentUser.admin}} +
  • {{#linkTo 'admin.groups'}}{{i18n admin.groups.title}}{{/linkTo}}
  • + {{/if}}
  • {{#linkTo 'adminEmail'}}{{i18n admin.email.title}}{{/linkTo}}
  • {{#linkTo 'adminFlags'}}{{i18n admin.flags.title}}{{/linkTo}}
  • {{#if currentUser.admin}}