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; }