Allow guest document file token access
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m36s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m36s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user