2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

FIX: Anonymous users shouldn't see the link to new in the footer

This commit is contained in:
Robin Ward 2018-02-26 13:46:24 -05:00
parent 3be0294465
commit f8856f3d7a

View file

@ -31,7 +31,7 @@ export default Ember.Component.extend({
}
const unreadTopics = this.topicTrackingState.countUnread();
const newTopics = this.topicTrackingState.countNew();
const newTopics = this.currentUser ? this.topicTrackingState.countNew() : 0;
if (newTopics + unreadTopics > 0) {
const hasBoth = unreadTopics > 0 && newTopics > 0;