From f7acce53f984d1d04adf8cbe6830c709a97f080a Mon Sep 17 00:00:00 2001 From: Brian Chan Date: Tue, 12 Nov 2024 14:24:39 +0100 Subject: [PATCH] LPD-39725 Sort --- .../sharing/security/permission/SharingEntryAction.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/apps/sharing/sharing-api/src/main/java/com/liferay/sharing/security/permission/SharingEntryAction.java b/modules/apps/sharing/sharing-api/src/main/java/com/liferay/sharing/security/permission/SharingEntryAction.java index 734b3c0dd6207c..ad815ae56b0622 100644 --- a/modules/apps/sharing/sharing-api/src/main/java/com/liferay/sharing/security/permission/SharingEntryAction.java +++ b/modules/apps/sharing/sharing-api/src/main/java/com/liferay/sharing/security/permission/SharingEntryAction.java @@ -68,12 +68,12 @@ public static SharingEntryAction parseFromActionId(String actionId) { if (Objects.equals(ADD_DISCUSSION.getActionId(), actionId)) { return ADD_DISCUSSION; } - else if (Objects.equals(UPDATE.getActionId(), actionId)) { - return UPDATE; - } else if (Objects.equals(DOWNLOAD.getActionId(), actionId)) { return DOWNLOAD; } + else if (Objects.equals(UPDATE.getActionId(), actionId)) { + return UPDATE; + } else if (Objects.equals(VIEW.getActionId(), actionId)) { return VIEW; }