|
|
|
@ -16,11 +16,13 @@
|
|
|
|
|
helpers.displayMenuItem = function(data, index) {
|
|
|
|
|
var properties = data.navigation[index].properties;
|
|
|
|
|
|
|
|
|
|
if (properties.loggedIn && !data.loggedIn ||
|
|
|
|
|
properties.adminOnly && !data.isAdmin ||
|
|
|
|
|
properties.installed && properties.installed.search && !data.searchEnabled ||
|
|
|
|
|
properties.hideIfPrivate && data.privateUserInfo) {
|
|
|
|
|
return false;
|
|
|
|
|
if (properties) {
|
|
|
|
|
if (properties.loggedIn && !data.loggedIn ||
|
|
|
|
|
properties.adminOnly && !data.isAdmin ||
|
|
|
|
|
properties.installed && properties.installed.search && !data.searchEnabled ||
|
|
|
|
|
properties.hideIfPrivate && data.privateUserInfo) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|