Commit d5d030066c4880923417ce95d6f1820131b390d9
Merge branch '20220922' into 'master'
refactor(DEFECT-756): 查询账号角色时,只返回启动的角色 See merge request huang/thingsboard3.3.2!136
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -580,7 +580,7 @@ public class YtUserServiceImpl extends AbstractBaseService<UserMapper, User> | @@ -580,7 +580,7 @@ public class YtUserServiceImpl extends AbstractBaseService<UserMapper, User> | ||
580 | if(enableRoles.size() == 0){ | 580 | if(enableRoles.size() == 0){ |
581 | return null; | 581 | return null; |
582 | } | 582 | } |
583 | - return roleIds.toArray(new String[enableRoles.size()]); | 583 | + return enableRoles.toArray(new String[enableRoles.size()]); |
584 | } | 584 | } |
585 | if (roleOrGroupReqDTO.isQueryOrganization()) { | 585 | if (roleOrGroupReqDTO.isQueryOrganization()) { |
586 | List<String> organizationIds = | 586 | List<String> organizationIds = |