Skip to content

Commit 5f789e8

Browse files
author
Maxime
authored
Merge pull request #8 from delyriand/feature/permissions
feat: add permission on routes for sylius plus RBAC
2 parents 7af0bbb + 1678ab7 commit 5f789e8

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/Resources/config/routing/admin.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ monsieurbiz_sylius_cms_block_admin:
33
resource: |
44
alias: monsieurbiz_cms_block.block
55
section: admin
6+
permission: true
67
templates: "@SyliusAdmin\\Crud"
78
except: ['show']
89
redirect: update

src/Resources/translations/messages.en.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ monsieurbiz_cms_block:
2323
block:
2424
title: 'Block Element'
2525
description: 'An element containing a CMS block'
26+
sylius_plus:
27+
rbac:
28+
parent:
29+
blocks: 'Blocks'

src/Resources/translations/messages.fr.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,7 @@ monsieurbiz_cms_block:
2323
block:
2424
title: 'Lame Bloc'
2525
description: 'Une lame contenant un bloc CMS'
26+
sylius_plus:
27+
rbac:
28+
parent:
29+
blocks: 'Blocs'

0 commit comments

Comments
 (0)