From a1cdd5d81f094ecd2d1de58bb6e269d74387bdcf Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 16 Sep 2021 14:07:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20oidc=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/dataease/service/sys/SysUserService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/main/java/io/dataease/service/sys/SysUserService.java b/backend/src/main/java/io/dataease/service/sys/SysUserService.java index e7f2a81b2e..9c704a4883 100644 --- a/backend/src/main/java/io/dataease/service/sys/SysUserService.java +++ b/backend/src/main/java/io/dataease/service/sys/SysUserService.java @@ -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());