diff --git a/CoreCms.Net.Services/User/CoreCmsUserServices.cs b/CoreCms.Net.Services/User/CoreCmsUserServices.cs index 24ab85f..452e974 100644 --- a/CoreCms.Net.Services/User/CoreCmsUserServices.cs +++ b/CoreCms.Net.Services/User/CoreCmsUserServices.cs @@ -287,6 +287,12 @@ namespace CoreCms.Net.Services return jm; } + if (superior.parentId == user.id) + { + jm.msg = "不允许双方互相设置为上级"; + return jm; + } + var flag = IsInvited(userId, superiorId); if (flag) {