diff --git a/zimbra/src/main/java/fr/openent/zimbra/controllers/ZimbraController.java b/zimbra/src/main/java/fr/openent/zimbra/controllers/ZimbraController.java index a3ba748b..eb24bece 100644 --- a/zimbra/src/main/java/fr/openent/zimbra/controllers/ZimbraController.java +++ b/zimbra/src/main/java/fr/openent/zimbra/controllers/ZimbraController.java @@ -1389,7 +1389,7 @@ public void zimbraEventBusHandler(Message message) { String userId = body.getString(Field.USERID, null); if (userId != null) { UserUtils.getUserInfos(eb, userId, user -> { - Boolean hasExpertRight = WorkflowActionUtils.hasRight(user, RecallRights.ZIMBRA_RECALL_EXPERT); + Boolean hasExpertRight = WorkflowActionUtils.hasRight(user, RecallRights.ZIMBRA_EXPERT); if (Boolean.TRUE.equals(hasExpertRight)) { Action icalAction = new Action<>(UUID.fromString(userId), fr.openent.zimbra.core.enums.ActionType.ICAL, false); diff --git a/zimbra/src/main/java/fr/openent/zimbra/core/constants/RecallRights.java b/zimbra/src/main/java/fr/openent/zimbra/core/constants/RecallRights.java index 31b835f8..0a4063a9 100644 --- a/zimbra/src/main/java/fr/openent/zimbra/core/constants/RecallRights.java +++ b/zimbra/src/main/java/fr/openent/zimbra/core/constants/RecallRights.java @@ -4,5 +4,5 @@ public class RecallRights { public static final String ZIMBRA_RECALL_ADMIN = "zimbra.recall.admin"; public static final String ZIMBRA_RECALL_ACCEPT = "zimbra.recall.accept"; public static final String ZIMBRA_RECALL_RIGHT = "zimbra.recall.right"; - public static final String ZIMBRA_RECALL_EXPERT = "zimbra.expert"; + public static final String ZIMBRA_EXPERT = "zimbra.expert"; } diff --git a/zimbra/src/main/java/fr/openent/zimbra/security/ExpertAccess.java b/zimbra/src/main/java/fr/openent/zimbra/security/ExpertAccess.java index ebdc341d..ffda28ba 100644 --- a/zimbra/src/main/java/fr/openent/zimbra/security/ExpertAccess.java +++ b/zimbra/src/main/java/fr/openent/zimbra/security/ExpertAccess.java @@ -31,7 +31,7 @@ public class ExpertAccess implements ResourcesProvider { public void authorize(HttpServerRequest request, Binding binding, UserInfos user, Handler handler) { - if (WorkflowActionUtils.hasRight(user, RecallRights.ZIMBRA_RECALL_EXPERT)) { + if (WorkflowActionUtils.hasRight(user, RecallRights.ZIMBRA_EXPERT)) { handler.handle(true); } else { handler.handle(false);