Skip to content

Commit

Permalink
Merge pull request #15 from maximehuran/feature/plus-permissions
Browse files Browse the repository at this point in the history
Add permission in route for Sylius plus
  • Loading branch information
lanfisis authored Sep 24, 2024
2 parents 8fdef7e + 309c124 commit 91e5721
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Resources/config/routing/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ monsieurbiz_sylius_alert_message_admin:
resource: |
alias: monsieurbiz_alert_message.message
section: admin
permission: true
templates: "@SyliusAdmin\\Crud"
except: ['show']
redirect: update
Expand Down
4 changes: 4 additions & 0 deletions src/Resources/translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ monsieurbiz_alert_message:
create: Create message
update: Update
delete: Delete
sylius_plus:
rbac:
parent:
messages: 'Alert messages'
4 changes: 4 additions & 0 deletions src/Resources/translations/messages.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ monsieurbiz_alert_message:
create: Créer un message
update: Éditer
delete: Supprimer
sylius_plus:
rbac:
parent:
messages: 'Messages d''alerte'

0 comments on commit 91e5721

Please sign in to comment.