mirror of
https://github.com/discourse/discourse.git
synced 2025-04-15 16:20:54 +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 (
|
||||
this.siteSettings.enable_group_directory ||
|
||||
(this.currentUser && this.currentUser.staff)
|
||||
) {
|
||||
if (this.siteSettings.enable_group_directory) {
|
||||
links.push({
|
||||
route: "groups",
|
||||
className: "groups-link",
|
||||
|
Loading…
x
Reference in New Issue
Block a user