mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:09:33 +08:00
FIX: currentUser might be undefined (#9555)
This commit is contained in:
parent
d3dc8fc1b3
commit
23ff071ebd
|
@ -215,8 +215,8 @@ const SiteHeaderComponent = MountWidget.extend(Docking, PanEvents, {
|
|||
if (
|
||||
!e.target.closest("#current-user") &&
|
||||
!e.target.closest(".ring-backdrop") &&
|
||||
!this.currentUser.get("read_first_notification") &&
|
||||
!this.currentUser.get("enforcedSecondFactor")
|
||||
!this.get("currentUser.read_first_notification") &&
|
||||
!this.get("currentUser.enforcedSecondFactor")
|
||||
) {
|
||||
this.eventDispatched(
|
||||
"header:dismiss-first-notification-mask",
|
||||
|
|
|
@ -539,7 +539,7 @@ export default createWidget("header", {
|
|||
"notification",
|
||||
{
|
||||
recent: true,
|
||||
silent: this.currentUser.enforcedSecondFactor,
|
||||
silent: this.get("currentUser.enforcedSecondFactor"),
|
||||
limit: 5
|
||||
},
|
||||
{ cacheKey: "recent-notifications" }
|
||||
|
|
Loading…
Reference in New Issue
Block a user