Skip to content

Commit

Permalink
fix(recall): #MZI-216 update recall admin's rights
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdevriesere committed May 23, 2023
1 parent 5f7e441 commit 14bd85c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,7 @@ public void zimbraEventBusHandler(Message<JsonObject> 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<ICalTask> icalAction = new Action<>(UUID.fromString(userId), fr.openent.zimbra.core.enums.ActionType.ICAL, false);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class ExpertAccess implements ResourcesProvider {
public void authorize(HttpServerRequest request, Binding binding, UserInfos user,
Handler<Boolean> handler) {

if (WorkflowActionUtils.hasRight(user, RecallRights.ZIMBRA_RECALL_EXPERT)) {
if (WorkflowActionUtils.hasRight(user, RecallRights.ZIMBRA_EXPERT)) {
handler.handle(true);
} else {
handler.handle(false);
Expand Down

0 comments on commit 14bd85c

Please sign in to comment.