提交 8ca021cd 编写于 作者: O o2null 提交者: NoSubject

修复代理无法终止流程.


(cherry picked from commit 2e4f1342)
上级 14d6ef08
......@@ -56,7 +56,12 @@ class V2Terminate extends BaseAction {
String identity = business.organization().identity()
.getMajorWithPerson(effectivePerson.getDistinguishedName());
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;
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.
先完成此消息的编辑!
想要评论请 注册