juliocamarero/liferay-portal — pull request #385 by epgarcia (2012-05-04 11:46:26+00:00)
Title: LPS-27116 Announcements Owner Permissions

This ticket is derived from SOS-936, which actually affects the portal. Some changes have been performed at the permission checking of Announcements-portlet for the ADD_ENTRY permission of both Announcements and Alerts.

Now these permissions are checked through the AnnouncementsEntryPermission class of the Announcements Service, instead of using PortletPermissionUtil. Site Admin/Site Owner roles have now permission to add alert and announcement entries on those sites they own/administrate.

PS. format-source complains about the order of some params at the new check/contains method, but I just followed the same order criteria as in PermissionChecker.