diff --git a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 index 933d0516156..d2214077681 100644 --- a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 @@ -116,7 +116,7 @@ export default createWidget('hamburger-menu', { links.push({ route: 'users', className: 'user-directory-link', label: 'directory.title' }); } - if (this.siteSettings.enable_group_directory || this.currentUser.staff) { + if (this.siteSettings.enable_group_directory || (this.currentUser && this.currentUser.staff)) { links.push({ route: 'groups', className: 'groups-link', label: 'groups.index.title' }); }