Skip to content

Commit

Permalink
e
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjun-qima committed Oct 12, 2016
1 parent 179409c commit a0be57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/youzan/pfcase/web/my/MyController.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public String my(ModelMap model) throws Exception {
UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
String username = userDetails.getAccount().getUsername();
String role = userDetails.getAccount().getRole();
if (username.equals("admin") || role.equals("cs")) {
if (role.equals("admin") || role.equals("cs")) {
allTask = taskService.getAllTask();
} else {
allTask = taskService.getAllTaskByUsername(username);
Expand Down

0 comments on commit a0be57e

Please sign in to comment.