Merge pull request #828 from dataease/pr@dev@fix_sso_user_permission

fix: oidc用户权限缺失
This commit is contained in:
fit2cloud-chenyw 2021-09-16 14:08:56 +08:00 committed by GitHub
commit 26ce9d8051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,7 @@ public class SysUserService {
sysUser.setEnabled(1L);
sysUser.setLanguage("zh_CN");
sysUser.setFrom(2);
sysUser.setIsAdmin(false);
sysUser.setSub(ssoUserInfo.getSub());
sysUserMapper.insert(sysUser);
SysUser dbUser = findOne(sysUser);
@ -149,6 +150,7 @@ public class SysUserService {
sysUser.setUpdateTime(now);
sysUser.setEnabled(request.getEnabled());
sysUser.setLanguage("zh_CN");
sysUser.setIsAdmin(false);
sysUser.setFrom(1);
return sysUser;
}).collect(Collectors.toList());