From 46ba4ba42669ec7a94ced271b76ed9ef187bd564 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 27 Jul 2015 11:11:46 -0400 Subject: [PATCH] FIX: Edit controls should only show when you can edit --- .../discourse/templates/components/small-action.hbs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/templates/components/small-action.hbs b/app/assets/javascripts/discourse/templates/components/small-action.hbs index 73000fb97bf..71c9dce9303 100644 --- a/app/assets/javascripts/discourse/templates/components/small-action.hbs +++ b/app/assets/javascripts/discourse/templates/components/small-action.hbs @@ -1,7 +1,9 @@
{{fa-icon icon}}
{{#if post}} - + {{#if post.can_edit}} + + {{/if}} {{avatar post imageSize="small"}}