Skip to content

Commit 1b2e447

Browse files
committed
Added proper entity access en preview routes
1 parent 6e81c86 commit 1b2e447

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/os2forms_forloeb/os2forms_forloeb.routing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ os2forms_forloeb.meastro_notification.preview:
1717
webform:
1818
type: 'entity:webform'
1919
requirements:
20-
_permission: 'view any webform submission'
20+
_entity_access: 'webform.view'
2121

2222
os2forms_forloeb.meastro_notification.preview_render:
2323
path: '/admin/structure/webform/manage/{webform}/os2forms_forloeb/notification/{handler}/preview/{notification_type}/{content_type}/render/{submission}'
@@ -31,7 +31,7 @@ os2forms_forloeb.meastro_notification.preview_render:
3131
submission:
3232
type: 'entity:webform_submission'
3333
requirements:
34-
_permission: 'view any webform submission'
34+
_entity_access: 'submission.view'
3535

3636
os2forms_forloeb.meastro_notification.preview_message:
3737
path: '/os2forms_forloeb/notification/message'

0 commit comments

Comments
 (0)