|
|
@@ -23,7 +23,7 @@ import java.util.List;
|
|
|
@AllArgsConstructor
|
|
|
public class DestroyRecordController extends BaseController {
|
|
|
private DestroyRecordService destroyRecordService;
|
|
|
- private DestroyRecordRepo destroyRecordRepo;
|
|
|
+ private DestroyRecordRepo destroyRecordRepo;
|
|
|
|
|
|
//@PreAuthorize("hasRole('ADMIN')")
|
|
|
@PostMapping("/save")
|
|
|
@@ -37,7 +37,7 @@ public class DestroyRecordController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @PreAuthorize("hasRole('ADMIN' || 'META')")
|
|
|
+ @PreAuthorize("hasRole('ADMIN') || hasRole('META')")
|
|
|
@PostMapping("/all")
|
|
|
public Page<DestroyRecord> all(@RequestBody PageQuery pageQuery) {
|
|
|
return destroyRecordService.all(pageQuery);
|