Skip to content

Commit bfb4878

Browse files
msamborski-orbisrwinch
authored andcommitted
Update kotlin.adoc to add required spread operator(*)
Signed-off-by: Michael Samborski <[email protected]>
1 parent d864e51 commit bfb4878

File tree

1 file changed

+2
-2
lines changed
  • docs/modules/ROOT/pages/servlet/configuration

1 file changed

+2
-2
lines changed

docs/modules/ROOT/pages/servlet/configuration/kotlin.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class BankingSecurityConfig {
288288
open fun approvalsSecurityFilterChain(http: HttpSecurity): SecurityFilterChain {
289289
val approvalsPaths = arrayOf("/accounts/approvals/**", "/loans/approvals/**", "/credit-cards/approvals/**")
290290
http {
291-
securityMatcher(approvalsPaths)
291+
securityMatcher(*approvalsPaths)
292292
authorizeHttpRequests {
293293
authorize(anyRequest, hasRole("ADMIN"))
294294
}
@@ -303,7 +303,7 @@ class BankingSecurityConfig {
303303
val bankingPaths = arrayOf("/accounts/**", "/loans/**", "/credit-cards/**", "/balances/**")
304304
val viewBalancePaths = arrayOf("/balances/**")
305305
http {
306-
securityMatcher(bankingPaths)
306+
securityMatcher(*bankingPaths)
307307
authorizeHttpRequests {
308308
authorize(viewBalancePaths, hasRole("VIEW_BALANCE"))
309309
authorize(anyRequest, hasRole("USER"))

0 commit comments

Comments
 (0)