mirror of https://gitee.com/stylefeng/roses
【8.0】【sys】更新注释
parent
fbce27b59f
commit
e6ebda9b44
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue