Skip to content

Commit

Permalink
feat: add image in WebSecurityConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdeDevs committed Dec 15, 2024
1 parent 046b047 commit dde1763
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ protected SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exce
.requestMatchers(HttpMethod.PATCH, "/advertisementStatuses/*").hasAnyRole("ADMIN")
.requestMatchers(HttpMethod.POST, "/users").anonymous()
.requestMatchers(HttpMethod.POST, "/users/*").denyAll()
.requestMatchers(HttpMethod.POST, "/images").hasAuthority("ROLE_OWNER")
.requestMatchers(HttpMethod.POST, "/images/").hasAnyRole("OWNER")
.requestMatchers(HttpMethod.POST, "/rooms").authenticated()
.requestMatchers(HttpMethod.POST, "/rooms/*").hasAnyRole("OWNER")
.requestMatchers(HttpMethod.PATCH, "/rooms").authenticated()
Expand Down

0 comments on commit dde1763

Please sign in to comment.