- Timestamp:
- 03/18/23 23:33:54 (20 months ago)
- Branches:
- main
- Children:
- e2104c4
- Parents:
- 60e9cc1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/config/WebSecurityConfig.java
r60e9cc1 rc79897f 28 28 http.csrf().disable() 29 29 .authorizeRequests() 30 .antMatchers("/", "/products", "/services", "/filtered", "/login", "/register","/registerWarehouseman","/finishRegister","/test/*","/access_denied","/carCategoryReport","/partManufacturersReport","/mostPurchasedPart" ).permitAll()31 .antMatchers("/orders","/repairs","/reviews","/ part/*","/currentOrder","/addCarSampleForUser","/repairs/addReview/*").hasRole("CLIENT")30 .antMatchers("/", "/products", "/services", "/filtered", "/login", "/register","/registerWarehouseman","/finishRegister","/test/*","/access_denied","/carCategoryReport","/partManufacturersReport","/mostPurchasedPart","/part/*").permitAll() 31 .antMatchers("/orders","/repairs","/reviews","/currentOrder","/addCarSampleForUser","/repairs/addReview/*").hasRole("CLIENT") 32 32 .antMatchers("/viewUsers","/approve/*","/addPart","/addCarManufacturer","/addPartManufacturer","/addCategory","/addCar","/addRepairShop","/addWarehouse").hasRole("ADMIN") 33 33 .antMatchers("/myWarehouseReport","myWarehouse").hasRole("WAREHOUSEMAN")
Note:
See TracChangeset
for help on using the changeset viewer.