public boolean hasPermission(
PermissionChecker permissionChecker, long classPK, String actionId)
throws Exception {
CalendarBooking calendarBooking =
CalendarBookingLocalServiceUtil.getCalendarBooking(classPK);
<BUG>if (actionId.equals(ActionKeys.UPDATE) ||

actionId.equals(ActionKeys.DELETE)) {
</BUG>
actionId = ActionKeys.MANAGE_BOOKINGS;

public boolean hasPermission(
PermissionChecker permissionChecker, long classPK, String actionId)
throws Exception {
CalendarBooking calendarBooking =
CalendarBookingLocalServiceUtil.getCalendarBooking(classPK);
if (actionId.equals(ActionKeys.DELETE) ||
actionId.equals(ActionKeys.UPDATE)) {
actionId = ActionKeys.MANAGE_BOOKINGS;
