mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix the build.
This commit is contained in:
@@ -116,7 +116,7 @@ export default createWidget('hamburger-menu', {
|
|||||||
links.push({ route: 'users', className: 'user-directory-link', label: 'directory.title' });
|
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' });
|
links.push({ route: 'groups', className: 'groups-link', label: 'groups.index.title' });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user