Skip to content

Commit

Permalink
Fix scenarios and add missing inventory menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Paweł Jędrzejewski committed Feb 20, 2015
1 parent f0a2dba commit 03a60c9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion features/backend/groups.feature
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ Feature: User groups management
Given I am on the group creation page
When I fill in the following:
| Name | Dealers |
| Roles | ROLE_DEALER, ROLE_MANAGER |
And I press "Create"
Then I should be on the group index page
And I should see group with name "Dealers" in the list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ sylius_rbac:
administrator:
name: Administrator
description: Administrator user
permissions: [sylius.manage.locale, sylius.manage.currency, sylius.manage.country, sylius.manage.province, sylius.manage.zone]
permissions: [sylius.manage.locale, sylius.manage.currency, sylius.manage.country, sylius.manage.province, sylius.manage.zone, sylius.manage.payment_method]
security_roles: [ROLE_ADMINISTRATION_ACCESS]
catalog_manager:
name: Catalog Manager
Expand Down
4 changes: 4 additions & 0 deletions src/Sylius/Bundle/WebBundle/Menu/BackendMenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ protected function addAssortmentMenu(ItemInterface $menu, array $childOptions, $
'route' => 'sylius_backend_product_index',
'labelAttributes' => array('icon' => 'glyphicon glyphicon-th-list'),
))->setLabel($this->translate(sprintf('sylius.backend.menu.%s.products', $section)));
$child->addChild('inventory', array(
'route' => 'sylius_backend_inventory_index',
'labelAttributes' => array('icon' => 'glyphicon glyphicon-tasks'),
))->setLabel($this->translate(sprintf('sylius.backend.menu.%s.stockables', $section)));
}

if ($this->authorizationChecker->isGranted('sylius.product_option.index')) {
Expand Down

0 comments on commit 03a60c9

Please sign in to comment.