Merge pull request #6314 from nbianca/groups_directory

UX: Do not show the groups directory if disabled.
This commit is contained in:
Guo Xiang Tan 2018-08-27 13:00:39 +08:00 committed by GitHub
commit 3584af4e51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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",