From 48f8d9f8a4dfb27eecf173165f53c4fe066a0ef4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 31 Jan 2018 17:13:52 +0100 Subject: [PATCH] UX: prevent anons from clearing pins :pushpin: --- app/assets/javascripts/discourse/raw-views/topic-status.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/raw-views/topic-status.js.es6 b/app/assets/javascripts/discourse/raw-views/topic-status.js.es6 index 8b6af94cbb3..cf9f81cc0cb 100644 --- a/app/assets/javascripts/discourse/raw-views/topic-status.js.es6 +++ b/app/assets/javascripts/discourse/raw-views/topic-status.js.es6 @@ -53,7 +53,7 @@ export default Ember.Object.extend({ results.forEach(result => { result.title = I18n.t(`topic_statuses.${result.key}.help`); - if (!self.disableActions && (result.key === "pinned" ||result.key === "unpinned")) { + if (this.currentUser && (result.key === "pinned" || result.key === "unpinned")) { result.openTag = 'a href'; result.closeTag = 'a'; } else {