Commit 6158725e1fb94815fc3bdf5dbb964be5b40d704c
1 parent
2d18ed96
fix(DEFECT-688): 超级管理员点击账号管理详情显示未授权
超级管理员点击账号管理详情显示未授权
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -70,7 +70,7 @@ public class YtUserController extends AbstractUserAccount { | @@ -70,7 +70,7 @@ public class YtUserController extends AbstractUserAccount { | ||
70 | this.accountProperties = accountProperties; | 70 | this.accountProperties = accountProperties; |
71 | } | 71 | } |
72 | @GetMapping("{userId}") | 72 | @GetMapping("{userId}") |
73 | - @PreAuthorize("@check.checkPermissions({'TENANT_ADMIN'},{'api:yt:user:get'})") | 73 | + @PreAuthorize("@check.checkPermissions({},{'api:yt:user:get'})") |
74 | public ResponseEntity<UserDTO> getUser(@PathVariable("userId") String userId) | 74 | public ResponseEntity<UserDTO> getUser(@PathVariable("userId") String userId) |
75 | throws ThingsboardException { | 75 | throws ThingsboardException { |
76 | return ResponseEntity.of( | 76 | return ResponseEntity.of( |