修改权限问题

master
bynt 2 years ago
parent a921772e19
commit 54da04ea1b

@ -57,8 +57,7 @@ public class UserController {
@ApiOperation("获取当前的用户信息") @ApiOperation("获取当前的用户信息")
@GetMapping(value = "/info") @GetMapping(value = "/info")
@PreAuthorize("@el.check('user:list')") public ResponseEntity<Map<String, Object>> getUserInfo() {
public ResponseEntity<Map<String, Object>> getCurrentUserInfo() {
return ResponseEntity.ok(this.userService.getCurrentUserInfo()); return ResponseEntity.ok(this.userService.getCurrentUserInfo());
} }

Loading…
Cancel
Save