提交 2e4f1342 编写于 作者: O o2null

修复代理无法终止流程.

上级 41bf50ab
...@@ -56,7 +56,12 @@ class V2Terminate extends BaseAction { ...@@ -56,7 +56,12 @@ class V2Terminate extends BaseAction {
String identity = business.organization().identity() String identity = business.organization().identity()
.getMajorWithPerson(effectivePerson.getDistinguishedName()); .getMajorWithPerson(effectivePerson.getDistinguishedName());
if (StringUtils.isEmpty(identity)) { if (StringUtils.isEmpty(identity)) {
throw new ExceptionEmptyIdentity(effectivePerson.getDistinguishedName()); // 如果直接报错,那么管理员和cipher无法进行终止.
if (effectivePerson.isManager()) {
identity = effectivePerson.getDistinguishedName();
} else {
throw new ExceptionEmptyIdentity(effectivePerson.getDistinguishedName());
}
} }
param.distinguishedName = identity; param.distinguishedName = identity;
Control control = new WorkControlBuilder(effectivePerson, business, work).enableAllowManage() Control control = new WorkControlBuilder(effectivePerson, business, work).enableAllowManage()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册