Skip to content

Commit

Permalink
[SHIBUI-1058]
Browse files Browse the repository at this point in the history
change user returned for current user
  • Loading branch information
jj committed Jan 29, 2019
1 parent ed10233 commit fda8924
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ public List<User> getAll() {

@Transactional(readOnly = true)
@GetMapping("/current")
public Principal getCurrentUser(Principal principal) {
return principal;
public User getCurrentUser(Principal principal) {
// TODO: fix this
return userService.getCurrentUser();
}

@PreAuthorize("hasRole('ADMIN')")
Expand Down

0 comments on commit fda8924

Please sign in to comment.