Fix the build.

This commit is contained in:
Guo Xiang Tan 2018-04-10 09:50:00 +08:00
parent d9d86577ff
commit ffb7ec2543
1 changed files with 1 additions and 1 deletions

View File

@ -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' });
}