Node.js based forum software built for the modern web
helpers.displayMenuItem
psychobunny6dacaf6bb528
diff --git a/public/src/modules/helpers.js b/public/src/modules/helpers.jsindex c4676a0e37..059e4445ab 100644--- a/public/src/modules/helpers.js+++ b/public/src/modules/helpers.js@@ -13,6 +13,18 @@return (config.loggedIn || !config.privateUserInfo);};+ helpers.displayMenuItem = function(data, index) {+ var properties = data.navigation[index].properties;++ if (properties.loggedIn && !ldata.oggedIn ||+ properties.adminOnly && !data.isAdmin ||+ properties.installed && properties.installed.search && !data.searchEnabled) {+ return false;+ }++ return true;+ };+helpers.buildMetaTag = function(tag) {var name = tag.name ? 'name="' + tag.name + '" ' : '',property = tag.property ? 'property="' + tag.property + '" ' : '',