提交 ad4938c6 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'cherry-pick-2e4f1342' into 'develop'

修复代理无法终止流程.

See merge request o2oa/o2oa!2600
......@@ -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.
先完成此消息的编辑!
想要评论请 注册