From 6730ae32d47be32e27f96c6e8210ab9790dd0233 Mon Sep 17 00:00:00 2001 From: Alexandre Valdetaro Date: Wed, 16 Jul 2014 19:08:40 -0300 Subject: [PATCH] bug fix: MenuItem and SubMenuItem can now be private independently of parent --- public/modules/core/services/menus.client.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/modules/core/services/menus.client.service.js b/public/modules/core/services/menus.client.service.js index ab983d424f..66c84b7a74 100644 --- a/public/modules/core/services/menus.client.service.js +++ b/public/modules/core/services/menus.client.service.js @@ -85,7 +85,7 @@ angular.module('core').service('Menus', [ menuItemType: menuItemType || 'item', menuItemClass: menuItemType, uiRoute: menuItemUIRoute || ('/' + menuItemURL), - isPublic: isPublic || this.menus[menuId].isPublic, + isPublic: isPublic === null && this.menus[menuId].isPublic || isPublic, roles: roles || this.defaultRoles, items: [], shouldRender: shouldRender @@ -108,7 +108,7 @@ angular.module('core').service('Menus', [ title: menuItemTitle, link: menuItemURL, uiRoute: menuItemUIRoute || ('/' + menuItemURL), - isPublic: isPublic || this.menus[menuId].isPublic, + isPublic: isPublic === null && this.menus[menuId].isPublic || isPublic, roles: roles || this.defaultRoles, shouldRender: shouldRender });