more input checking

This commit is contained in:
Kenneth Kehl
2025-06-26 10:35:46 -07:00
parent 3e93d6c9c6
commit 58a8b51f59
16 changed files with 214 additions and 86 deletions

View File

@@ -23,6 +23,7 @@ from app.schemas import (
)
from app.service.utils import service_allowed_to_send_to
from app.utils import (
check_suspicious_id,
get_public_notify_type_text,
get_template_instance,
pagination_links,
@@ -36,6 +37,7 @@ register_errors(notifications)
@notifications.route("/notifications/<uuid:notification_id>", methods=["GET"])
def get_notification_by_id(notification_id):
check_suspicious_id(notification_id)
notification = notifications_dao.get_notification_with_personalisation(
str(authenticated_service.id), notification_id, key_type=None
)