Parcourir la source

Merge branch 'fix/#338' into 'wrdp'

add cipher

See merge request o2oa/o2oa!1507

(cherry picked from commit 3ad5a8635bb3af3f5d643258ee60774ff0ba707e)

420daa1a add cipher
o2null il y a 5 ans
Parent
commit
e75cf7dbe0

+ 1 - 1
o2server/x_processplatform_assemble_surface/src/main/java/com/x/processplatform/assemble/surface/jaxrs/task/ActionProcessing.java

@@ -93,7 +93,7 @@ class ActionProcessing extends BaseAction {
 			if (null == this.work) {
 				throw new ExceptionEntityNotExist(this.task.getWork(), Work.class);
 			}
-			if (effectivePerson.isNotPerson(this.task.getPerson())) {
+			if ((!effectivePerson.isCipher()) && effectivePerson.isNotPerson(this.task.getPerson())) {
 				throw new ExceptionAccessDenied(effectivePerson, this.task);
 			}
 			if (StringUtils.isNotEmpty(wi.getRouteName()) || StringUtils.isNotEmpty(wi.getOpinion())