From c4210db3074dd1a03176441948c36bf12329f346 Mon Sep 17 00:00:00 2001 From: riley Date: Wed, 17 May 2017 16:10:02 -0600 Subject: [PATCH] staff should not see moderate tag. translations --- client/coral-admin/src/components/ui/Header.js | 18 +++++++++++------- client/coral-admin/src/translations.json | 2 ++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/client/coral-admin/src/components/ui/Header.js b/client/coral-admin/src/components/ui/Header.js index 094aeee7d..38797a7c3 100644 --- a/client/coral-admin/src/components/ui/Header.js +++ b/client/coral-admin/src/components/ui/Header.js @@ -26,13 +26,17 @@ const CoralHeader = ({ activeClassName={styles.active}> {lang.t('configure.dashboard')} - - {lang.t('configure.moderate')} - + { + auth && auth.user && can(auth.user, 'MODERATE_COMMENTS') && ( + + {lang.t('configure.moderate')} + + ) + }