mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 11:33:06 +08:00
FIX: Anonymous users shouldn't see the link to new in the footer
This commit is contained in:
parent
3be0294465
commit
f8856f3d7a
|
@ -31,7 +31,7 @@ export default Ember.Component.extend({
|
||||||
}
|
}
|
||||||
|
|
||||||
const unreadTopics = this.topicTrackingState.countUnread();
|
const unreadTopics = this.topicTrackingState.countUnread();
|
||||||
const newTopics = this.topicTrackingState.countNew();
|
const newTopics = this.currentUser ? this.topicTrackingState.countNew() : 0;
|
||||||
|
|
||||||
if (newTopics + unreadTopics > 0) {
|
if (newTopics + unreadTopics > 0) {
|
||||||
const hasBoth = unreadTopics > 0 && newTopics > 0;
|
const hasBoth = unreadTopics > 0 && newTopics > 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user