fix issue #I4GZ61

This commit is contained in:
yubaolee 2021-12-09 00:42:10 +08:00
parent 69d0587c83
commit d0253a7fc0

View File

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using Infrastructure;
using OpenAuth.App.Interface;
@ -49,6 +50,10 @@ namespace OpenAuth.App
public string Update(Org org)
{
if (org.Id == org.ParentId)
{
throw new Exception("上级节点不能为自己");
}
UpdateTreeObj(org);
return org.Id;