style: fix lint

This commit is contained in:
usbharu 2024-02-26 12:40:52 +09:00
parent 88e78ff948
commit dcbef07251
3 changed files with 2 additions and 8 deletions

View File

@ -215,15 +215,11 @@ class SecurityConfig {
authorize(GET, "/users/*", permitAll)
authorize(GET, "/users/*/posts/*", permitAll)
authorize("/auth/sign_up", hasRole("ANONYMOUS"))
authorize(GET, "/files/*", permitAll)
authorize(GET, "/users/*/icon.jpg", permitAll)
authorize(GET, "/users/*/header.jpg", permitAll)
authorize(anyRequest, authenticated)
}
@ -309,8 +305,6 @@ class SecurityConfig {
return MappingJackson2HttpMessageConverter(builder.build())
}
// Spring Security 3.2.1 に存在する EnableWebSecurity(debug = true)にすると発生するエラーに対処するためのコード
// trueにしないときはコメントアウト

View File

@ -169,4 +169,4 @@ class MastodonApiSecurityConfig {
return roleHierarchyImpl
}
}
}

View File

@ -51,4 +51,4 @@ class AccountNotFoundException : ClientException {
),
)
}
}
}