Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add permission on routes #34

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'
Loading