From afaf9fd54c8ce308e879fac3ff3fcfebb26790bd Mon Sep 17 00:00:00 2001 From: Kyle Zhao Date: Wed, 24 Jan 2018 21:52:05 -0500 Subject: [PATCH] FIX: mods should be able to grant badges in post wrench (#5522) --- app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 index a1c4325bd40..e21317a74fb 100644 --- a/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 @@ -64,7 +64,9 @@ export function buildManageButtons(attrs, currentUser) { action: 'changePostOwner', className: 'change-owner' }); + } + if (currentUser.staff) { contents.push({ icon: 'certificate', label: 'post.controls.grant_badge',