From 5be41faa8cb71059d022fa6acbf2c25db21a0def Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Sun, 26 Aug 2018 00:21:09 +0200 Subject: [PATCH] UX: Do not show the groups directory if disabled. Staff could still the groups directory before. --- .../javascripts/discourse/widgets/hamburger-menu.js.es6 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 index 651cf97360f..12b6dbea51d 100644 --- a/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 +++ b/app/assets/javascripts/discourse/widgets/hamburger-menu.js.es6 @@ -155,10 +155,7 @@ export default createWidget("hamburger-menu", { }); } - if ( - this.siteSettings.enable_group_directory || - (this.currentUser && this.currentUser.staff) - ) { + if (this.siteSettings.enable_group_directory) { links.push({ route: "groups", className: "groups-link",