File tree Expand file tree Collapse file tree
src/main/java/com/crimeLink/analyzer/config Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,13 +91,6 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
9191 // Admin/OIC/Investigator routes (officer data, locations, users)
9292 .requestMatchers ("/api/users/field-officers" ).hasAnyRole ("Admin" , "OIC" , "Investigator" )
9393 .requestMatchers ("/api/admin/officers/*/locations/**" ).hasAnyRole ("Admin" , "OIC" , "Investigator" )
94-
95- // Admin-only: backup, restore, settings (must come before general /api/admin/**)
96- .requestMatchers ("/api/admin/backup" ).hasRole ("Admin" )
97- .requestMatchers ("/api/admin/restore" ).hasRole ("Admin" )
98- .requestMatchers ("/api/admin/backups" ).hasRole ("Admin" )
99- .requestMatchers ("/api/admin/settings" ).hasRole ("Admin" )
100-
10194 .requestMatchers ("/api/admin/**" ).hasAnyRole ("OIC" , "Admin" )
10295
10396 .anyRequest ().authenticated ())
You can’t perform that action at this time.
0 commit comments