mirror of
https://github.com/discourse/discourse.git
synced 2025-05-20 04:23:13 +08:00
Merge pull request #6314 from nbianca/groups_directory
UX: Do not show the groups directory if disabled.
This commit is contained in:
commit
3584af4e51
@ -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",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user