From e39300a4ab0d58aca7f050cd7dbb74888b8b3d80 Mon Sep 17 00:00:00 2001 From: Ayoub Zayati Date: Wed, 20 Mar 2024 16:37:05 +0100 Subject: [PATCH] Revert "fix: Wrong modifier avatar displayed in file details - EXO-69919 (#318)" This reverts commit 5e5a8aa4995d5f98eb6f06a8120fb79a4074cd0f. --- .../services/jcr/ext/action/ModifyNodeAction.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java b/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java index 945d64e154..995008a746 100644 --- a/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java +++ b/exo.jcr.component.ext/src/main/java/org/exoplatform/services/jcr/ext/action/ModifyNodeAction.java @@ -23,7 +23,6 @@ import org.apache.commons.chain.Context; import org.exoplatform.services.command.action.Action; -import org.exoplatform.services.jcr.impl.core.PropertyImpl; import org.exoplatform.services.security.ConversationState; /** @@ -51,10 +50,6 @@ public boolean execute(Context context) throws Exception { if(node.canAddMixin("exo:modify")) { node.addMixin("exo:modify"); } - String propertyName =((PropertyImpl) item).getInternalName().getName(); - if (propertyName.equals("documentViews") || propertyName.equals("documentViewers")) { - return false; - } node.setProperty("exo:lastModifiedDate", new GregorianCalendar()); node.setProperty("exo:lastModifier",userName); return false;