Browse Source

注释log权限认证

王先生 2 years ago
parent
commit
9154668493
1 changed files with 3 additions and 3 deletions
  1. 3 3
      eladmin-logging/src/main/java/me/zhengjie/rest/LogController.java

+ 3 - 3
eladmin-logging/src/main/java/me/zhengjie/rest/LogController.java

@@ -61,7 +61,7 @@ public class LogController {
     }
     @GetMapping
     @ApiOperation("日志查询")
-    @PreAuthorize("@el.check()")
+//    @PreAuthorize("@el.check()")
     public ResponseEntity<Object> query(LogQueryCriteria criteria, Pageable pageable){
         criteria.setLogType("INFO");
         return new ResponseEntity<>(logService.queryAll(criteria,pageable), HttpStatus.OK);
@@ -77,7 +77,7 @@ public class LogController {
 
     @GetMapping(value = "/error")
     @ApiOperation("错误日志查询")
-    @PreAuthorize("@el.check()")
+//    @PreAuthorize("@el.check()")
     public ResponseEntity<Object> queryErrorLog(LogQueryCriteria criteria, Pageable pageable){
         criteria.setLogType("ERROR");
         return new ResponseEntity<>(logService.queryAll(criteria,pageable), HttpStatus.OK);
@@ -85,7 +85,7 @@ public class LogController {
 
     @GetMapping(value = "/error/{id}")
     @ApiOperation("日志异常详情查询")
-    @PreAuthorize("@el.check()")
+//    @PreAuthorize("@el.check()")
     public ResponseEntity<Object> queryErrorLogs(@PathVariable Long id){
         return new ResponseEntity<>(logService.findByErrDetail(id), HttpStatus.OK);
     }