Skip to content

Commit 46aa294

Browse files
committed
Added proper entity access checks on Maestro notification preview routes
1 parent 6e81c86 commit 46aa294

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ before starting to add changes. Use example [placed in the end of the page](#exa
1111

1212
## [Unreleased]
1313

14+
- [PR-307](https://github.com/OS2Forms/os2forms/pull/307)
15+
Added proper entity access checks on Maestro notification preview routes
16+
1417
## [5.0.0] 2025-11-18
1518

1619
- [PR-192](https://github.com/OS2Forms/os2forms/pull/192)

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)