Permalink
Browse files

LPS-26414 Alerts portlet: The user can not create new entry despite t…

…he fact that you have permission.

Signed-off-by: Zsolt Szabo <zsolt.szabo@liferay.com>
  • Loading branch information...
1 parent cd9221d commit 4ba6ad5c8ef41eb4772bbdc15d0a72bdd3723b13 @zsagia zsagia committed with brianchandotcom Apr 19, 2012
@@ -26,7 +26,7 @@ tabs1URL.setParameter("tabs1", tabs1);
String tabs1Names = "entries";
-if (PortletPermissionUtil.contains(permissionChecker, layout, PortletKeys.ANNOUNCEMENTS, ActionKeys.ADD_ENTRY)) {
+if (PortletPermissionUtil.contains(permissionChecker, layout, portletName, ActionKeys.ADD_ENTRY)) {
tabs1Names += ",manage-entries";
}
%>
@@ -27,7 +27,7 @@ portletURL.setParameter("struts_action", "/announcements/view");
portletURL.setParameter("tabs1", tabs1);
%>
-<c:if test="<%= !portletName.equals(PortletKeys.ALERTS) || (portletName.equals(PortletKeys.ALERTS) && PortletPermissionUtil.contains(permissionChecker, layout, PortletKeys.ANNOUNCEMENTS, ActionKeys.ADD_ENTRY)) %>">
+<c:if test="<%= !portletName.equals(PortletKeys.ALERTS) || (portletName.equals(PortletKeys.ALERTS) && PortletPermissionUtil.contains(permissionChecker, layout, PortletKeys.ALERTS, ActionKeys.ADD_ENTRY)) %>">
<liferay-util:include page="/html/portlet/announcements/tabs1.jsp" />
</c:if>

0 comments on commit 4ba6ad5

Please sign in to comment.