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

Commit 6730ae3

Browse files
committed
bug fix: MenuItem and SubMenuItem can now be private independently of parent
1 parent ba0a6a0 commit 6730ae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/modules/core/services/menus.client.service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ angular.module('core').service('Menus', [
8585
menuItemType: menuItemType || 'item',
8686
menuItemClass: menuItemType,
8787
uiRoute: menuItemUIRoute || ('/' + menuItemURL),
88-
isPublic: isPublic || this.menus[menuId].isPublic,
88+
isPublic: isPublic === null && this.menus[menuId].isPublic || isPublic,
8989
roles: roles || this.defaultRoles,
9090
items: [],
9191
shouldRender: shouldRender
@@ -108,7 +108,7 @@ angular.module('core').service('Menus', [
108108
title: menuItemTitle,
109109
link: menuItemURL,
110110
uiRoute: menuItemUIRoute || ('/' + menuItemURL),
111-
isPublic: isPublic || this.menus[menuId].isPublic,
111+
isPublic: isPublic === null && this.menus[menuId].isPublic || isPublic,
112112
roles: roles || this.defaultRoles,
113113
shouldRender: shouldRender
114114
});

0 commit comments

Comments
 (0)