From e3e6fd6ea0ecf2611738127efc585afbf727d219 Mon Sep 17 00:00:00 2001 From: Joshua Rosenfeld Date: Mon, 28 Aug 2017 23:49:30 -0400 Subject: [PATCH] FIX: Only show topic timer to staff --- .../javascripts/discourse/widgets/topic-admin-menu.js.es6 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 index dce68c0af0c..212d549d42d 100644 --- a/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/topic-admin-menu.js.es6 @@ -140,11 +140,12 @@ export default createWidget('topic-admin-menu', { icon: 'lock', label: 'actions.close' }); } - - buttons.push({ className: 'topic-admin-status-update', + if (this.currentUser.get('staff')) { + buttons.push({ className: 'topic-admin-status-update', action: 'showTopicStatusUpdate', icon: 'clock-o', label: 'actions.timed_update' }); + } const isPrivateMessage = topic.get('isPrivateMessage');