On enterprise edit page, do not show side menu links we don't have permission to

This commit is contained in:
Rohan Mitchell
2015-01-15 12:39:16 +11:00
parent 83754a01ef
commit dcc04ea538
5 changed files with 39 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ describe "menuCtrl", ->
SideMenu = _SideMenu_
spyOn(SideMenu, "select").andCallThrough()
spyOn(SideMenu, "setItems").andCallThrough()
ctrl = $controller 'sideMenuCtrl', {$scope: scope, Enterprise: Enterprise, SideMenu: SideMenu}
ctrl = $controller 'sideMenuCtrl', {$scope: scope, Enterprise: Enterprise, SideMenu: SideMenu, enterprisePermissions: {}}
describe "initialisation", ->
it "stores enterprise", ->