新增管理员即赋予权限无法生效问题处理。直播间未登录用户报错问题处理
This commit is contained in:
parent
3ee3e49d0b
commit
c1b9f287c7
@ -199,13 +199,12 @@ public class AdminUserServiceImpl extends ServiceImpl<AdminUserMapper, AdminUser
|
||||
if (roles.size() > 10) {
|
||||
throw new ServiceException(ResultCode.PERMISSION_BEYOND_TEN);
|
||||
}
|
||||
if (roles != null && roles.size() > 0) {
|
||||
if (roles.size() > 0) {
|
||||
dbUser.setRoleIds(StringUtils.join(",", roles));
|
||||
}
|
||||
|
||||
|
||||
this.save(dbUser);
|
||||
updateRole(adminUser.getId(), roles);
|
||||
dbUser = this.findByUsername(dbUser.getUsername());
|
||||
updateRole(dbUser.getId(), roles);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user