From 3c79adbd36ecc5737228de5781101d895b27912a Mon Sep 17 00:00:00 2001 From: Adrian Kierzkowski Date: Thu, 24 Sep 2015 16:13:57 +0200 Subject: [PATCH] Fixes booking editing permissions. Refs kenorb/booking_timeslots#23. Refs kenorb/booking_timeslots#22 --- booking_timeslots.booking.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/booking_timeslots.booking.inc b/booking_timeslots.booking.inc index 5af747f..b32948b 100644 --- a/booking_timeslots.booking.inc +++ b/booking_timeslots.booking.inc @@ -662,7 +662,8 @@ function booking_timeslots_booking_menu(&$items) { 'title' => 'Edit', 'page callback' => array('drupal_get_form'), 'page arguments' => array('booking_timeslots_booking_form_edit', 1), - 'access arguments' => array('edit booking entities'), + 'access callback' => 'booking_timeslots_booking_access', + 'access arguments' => array('edit', 1), 'file' => 'booking_timeslots.booking.inc', 'type' => MENU_LOCAL_TASK, 'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,