Skip to content

Commit

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

Add permission on routes in case of Sylius Plus
  • Loading branch information
maximehuran authored Jan 23, 2024
2 parents 5d4984a + 424d8ba commit 204fc9a
Show file tree
Hide file tree
Showing 4 changed files with 13 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_sylius_homepage_admin:
resource: |
alias: monsieurbiz_homepage.homepage
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 @@ -17,3 +17,7 @@ monsieurbiz_homepage:
id: 'ID'
actions:
create: 'New homepage'
sylius_plus:
rbac:
parent:
homepages: 'Homepages'
4 changes: 4 additions & 0 deletions src/Resources/translations/messages.fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ monsieurbiz_homepage:
id: 'ID'
actions:
create: 'Nouvelle page d''accueil'
sylius_plus:
rbac:
parent:
homepages: 'Homepages'
4 changes: 4 additions & 0 deletions src/Resources/translations/messages.nl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ monsieurbiz_homepage:
id: 'ID'
actions:
create: 'Nieuwe homepagina'
sylius_plus:
rbac:
parent:
homepages: 'Homepagina''s'

0 comments on commit 204fc9a

Please sign in to comment.