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 (
this.siteSettings.enable_group_directory ||
(this.currentUser && this.currentUser.staff)
) {
if (this.siteSettings.enable_group_directory) {
links.push({
route: "groups",
className: "groups-link",