Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
bug fix: MenuItem and SubMenuItem can now be private independently of…
Browse files Browse the repository at this point in the history
… parent
  • Loading branch information
xvaldetaro committed Jul 16, 2014
1 parent ba0a6a0 commit 6730ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/modules/core/services/menus.client.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
});
Expand Down

0 comments on commit 6730ae3

Please sign in to comment.