Make room images list public and fix tag schema
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m33s
All checks were successful
build-and-deploy / build-deploy (push) Successful in 1m33s
This commit is contained in:
@@ -26,6 +26,7 @@ class FirebaseAuthFilter(
|
||||
return true
|
||||
}
|
||||
return path.matches(Regex("^/properties/[^/]+/rooms/[^/]+/images/[^/]+/file$"))
|
||||
|| path.matches(Regex("^/properties/[^/]+/rooms/[^/]+/images$"))
|
||||
|| path.matches(Regex("^/properties/[^/]+/room-types$"))
|
||||
|| path == "/image-tags"
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ class SecurityConfig(
|
||||
.authorizeHttpRequests {
|
||||
it.requestMatchers("/", "/health", "/auth/**").permitAll()
|
||||
it.requestMatchers("/properties/*/rooms/*/images/*/file").permitAll()
|
||||
it.requestMatchers("/properties/*/rooms/*/images").permitAll()
|
||||
it.requestMatchers("/properties/*/room-types").permitAll()
|
||||
it.requestMatchers("/image-tags").permitAll()
|
||||
it.anyRequest().authenticated()
|
||||
|
||||
Reference in New Issue
Block a user