Skip to content

Commit

Permalink
chore: í¸í¸í¸í¸í¸merde!
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverD3 committed Oct 30, 2024
1 parent 87f2a23 commit daec382
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/org/isf/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers(HttpMethod.GET, "/reports/**").hasAnyAuthority("reports.read")
.requestMatchers(HttpMethod.PUT, "/reports/**").hasAuthority("reports.update")
.requestMatchers(HttpMethod.DELETE, "/reports/**").hasAuthority("reports.delete")
// Settings
.requestMatchers(HttpMethod.GET, "/settings/**").hasAnyAuthority("settings.read")
.requestMatchers(HttpMethod.PUT, "/settings/**").hasAuthority("settings.update")
.requestMatchers(HttpMethod.POST, "/settings/**").hasAuthority("settings.update")
// sms
.requestMatchers(HttpMethod.POST, "/sms/**").hasAuthority("sms.create")
.requestMatchers(HttpMethod.GET, "/sms/**").hasAnyAuthority("sms.read")
Expand Down Expand Up @@ -340,10 +344,6 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers(HttpMethod.GET, "/wards/**").hasAnyAuthority("wards.read")
.requestMatchers(HttpMethod.PUT, "/wards/**").hasAuthority("wards.update")
.requestMatchers(HttpMethod.DELETE, "/wards/**").hasAuthority("wards.delete")
// Settings
.requestMatchers(HttpMethod.GET, "/settings/**").hasAnyAuthority("settings.read")
.requestMatchers(HttpMethod.PUT, "/settings/**").hasAuthority("settings.update")
.requestMatchers(HttpMethod.POST, "/settings/**").hasAuthority("settings.update")

.anyRequest().authenticated()
)
Expand Down

0 comments on commit daec382

Please sign in to comment.