@@ -0,0 +1,1176 @@
+/**%0A * Copyright (c) 2015-present Jorge D%C3%ADaz All rights reserved.%0A *%0A * This library is free software; you can redistribute it and/or modify it under%0A * the terms of the GNU Lesser General Public License as published by the Free%0A * Software Foundation; either version 2.1 of the License, or (at your option)%0A * any later version.%0A *%0A * This library is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more%0A * details.%0A */%0A%0Apackage jorgediazest.indexchecker.model;%0A%0Aimport com.liferay.portal.kernel.security.permission.ActionKeys;%0A%0Aimport jorgediazest.util.data.Data;%0A%0A/**%0A * @author Jorge D%C3%ADaz%0A */%0Apublic class CalendarBookingPermissionsHelper extends IndexCheckerPermissionsHelper %7B%0A%0A%09@Override%0A%09protected String getPermissionsActionId(Data data) %7B%0A%09%09return %22VIEW_BOOKING_DETAILS%22;%0A%09%7D%0A%0A%09@Override%0A%09protected String getPermissionsClassName(Data data) %7B%0A%09%09return %22com.liferay.calendar.model.Calendar%22;%0A%09%7D%0A%0A%09@Override%0A%09protected long getPermissionsClassPK(Data data) %7B%0A%09%09return data.get(%22calendarId%22, -1L);%0A%09%7D%0A%7D

Fix CalendarBooking permissions bug (entries were detected as outdated)