Allow guest document file token access
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m36s

This commit is contained in:
androidlover5842
2026-01-30 15:58:02 +05:30
parent 8ba3c2f2bd
commit 174652e889
2 changed files with 8 additions and 21 deletions

View File

@@ -12,6 +12,7 @@ internal object PublicEndpoints {
private val iconPngFile = Regex("^/icons/png/[^/]+$")
private val payuWebhook = Regex("^/properties/[^/]+/payu/webhook$")
private val payuReturn = Regex("^/properties/[^/]+/payu/return/(success|failure)$")
private val guestDocumentFile = Regex("^/properties/[^/]+/guests/[^/]+/documents/[^/]+/file$")
fun isPublic(request: HttpServletRequest): Boolean {
val path = request.requestURI
@@ -30,5 +31,6 @@ internal object PublicEndpoints {
|| (path == "/image-tags" && method == "GET")
|| path == "/icons/png"
|| iconPngFile.matches(path)
|| guestDocumentFile.matches(path)
}
}