|
|
|
@@ -74,7 +74,11 @@ public class SecurityConfig { |
|
|
|
return new BCryptPasswordEncoder(); |
|
|
|
} |
|
|
|
|
|
|
|
/** FP-MTMS Version Checklist | Functions Ref. No. 51 | v1.0.0 | 2026-08-05 */ |
|
|
|
/** |
|
|
|
* FP-MTMS Version Checklist | Functions Ref. No. 51 | v1.0.0 | 2026-08-05 |
|
|
|
* FP-MTMS Version Checklist | Functions Ref. No. 3 | v1.0.5 | 2026-08-05 |
|
|
|
* (stockAdjustment/submit → INVENTORY_ADJUST only) |
|
|
|
*/ |
|
|
|
@Bean |
|
|
|
@Order(1) |
|
|
|
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { |
|
|
|
@@ -113,7 +117,7 @@ public class SecurityConfig { |
|
|
|
.requestMatchers(HttpMethod.GET, "/label-printer-monitor/odometer-stats") |
|
|
|
.hasAnyAuthority("TESTING", "ADMIN") |
|
|
|
.requestMatchers(HttpMethod.POST, "/stockAdjustment/submit") |
|
|
|
.hasAnyAuthority("ADMIN", "INVENTORY_ADJUST") |
|
|
|
.hasAuthority("INVENTORY_ADJUST") |
|
|
|
.requestMatchers(HttpMethod.GET, "/inventoryLotLine/trace") |
|
|
|
.hasAuthority("ITEM_TRACING") |
|
|
|
.requestMatchers(HttpMethod.GET, "/inventoryLotLine/trace/location/**") |
|
|
|
|