Merge pull request #3815 from alphagov/permissions-bug

allow caseworkers to view letter previews
This commit is contained in:
Leo Hemsted
2021-02-23 16:57:34 +00:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -197,7 +197,7 @@ def get_preview_error_image():
@main.route("/services/<uuid:service_id>/notification/<uuid:notification_id>.<letter_file_extension:filetype>")
@user_has_permissions('view_activity')
@user_has_permissions('view_activity', 'send_messages')
def view_letter_notification_as_preview(
service_id, notification_id, filetype, with_metadata=False
):