UX: Do not show the groups directory if disabled.

Staff could still the groups directory before.
This commit is contained in:
Bianca Nenciu 2018-08-26 00:21:09 +02:00
parent 64c4171937
commit 5be41faa8c

View File

@ -155,10 +155,7 @@ export default createWidget("hamburger-menu", {
}); });
} }
if ( if (this.siteSettings.enable_group_directory) {
this.siteSettings.enable_group_directory ||
(this.currentUser && this.currentUser.staff)
) {
links.push({ links.push({
route: "groups", route: "groups",
className: "groups-link", className: "groups-link",