2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-04 08:47:37 +08:00

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

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 {