mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-07-15 14:04:41 +08:00
fix issue #I4GZ61
This commit is contained in:
parent
69d0587c83
commit
d0253a7fc0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user