ow
This commit is contained in:
1 parent
5d0b0c751a
commit
d2278826fb
6 files changed
+83
-31
No files matched your search
@@ -145,6 +145,13 @@ namespace CloudBuilder.Master.Service
|
||||
|
||||
ObjectCopyHelper.Copy(data.FamilyPerson, d);
|
||||
|
||||
var has = new FamilyTreePermissionHelper(service).HasPermission(d.TreeId, d.PersonId);
|
||||
|
||||
if (!has)
|
||||
{
|
||||
throw new ValidatedException("您没有修改权限.");
|
||||
}
|
||||
|
||||
repository.UpdateNow(d);
|
||||
|
||||
return FindByKey(data.FamilyPerson.PersonId);
|
||||
|
||||
Reference in new issue
Block a user