Skip to content

Commit

Permalink
Merge pull request #34 from etienne-monsieurbiz/feature/permission-on…
Browse files Browse the repository at this point in the history
…-routes

Add permission on routes
  • Loading branch information
maximehuran authored Jan 23, 2024
2 parents e18f2ce + 9dc0e2f commit 6392b2f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/config/routes/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ monsieurbiz_menu_admin_menu:
resource: |
alias: monsieurbiz_menu.menu
section: admin
permission: true
templates: "@MonsieurBizSyliusMenuPlugin/Admin/Menu"
except: ['show', 'bulkDelete']
redirect: index
Expand Down
8 changes: 8 additions & 0 deletions src/Resources/translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ monsieurbiz_menu:
help_noopener: 'Add "noopener" to the rel attribute'
nofollow: 'nofollow'
help_nofollow: 'Add "nofollow" to the rel attribute'
sylius_plus:
rbac:
parent:
menus: 'Menus'
action:
create_for_menu: 'Create for menu'
move_up: 'Move up'
move_down: 'Move down'
8 changes: 8 additions & 0 deletions src/Resources/translations/messages.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,11 @@ monsieurbiz_menu:
help_noopener: 'Ajoute "noopener" à l''attribut rel'
nofollow: 'nofollow'
help_nofollow: 'Ajoute "nofollow" à l''attribut rel'
sylius_plus:
rbac:
parent:
menus: 'Menus'
action:
create_for_menu: 'Créer pour le menu'
move_up: 'Déplacer vers le haut'
move_down: 'Déplacer vers le bas'

0 comments on commit 6392b2f

Please sign in to comment.