【8.0】【sys】更新注释

pull/57/head
fengshuonan 2023-09-07 18:44:32 +08:00
parent fbce27b59f
commit e6ebda9b44
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUs
@Transactional(rollbackFor = Exception.class)
public void bindRoles(SysUserRoleRequest sysUserRoleRequest) {
// 不能修改超级管理员用户的角色
// 不能修改超级管理员用户的角色,修改管理员角色可能登录会有问题
boolean userSuperAdminFlag = sysUserService.getUserSuperAdminFlag(sysUserRoleRequest.getUserId());
if (userSuperAdminFlag) {
throw new ServiceException(SysUserExceptionEnum.CANT_CHANGE_ADMIN_ROLE);