UX: prevent anons from clearing pins 📌

This commit is contained in:
Régis Hanol 2018-01-31 17:13:52 +01:00
parent d233ecbe34
commit 48f8d9f8a4
1 changed files with 1 additions and 1 deletions

View File

@ -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 {