Separate permissions for coming and waiting list
This commit is contained in:
@@ -75,9 +75,12 @@ function booking_permission() {
|
||||
'access booking form' => array(
|
||||
'title' => t('Access the booking form'),
|
||||
),
|
||||
'access lists' => array(
|
||||
'title' => t('Access the coming and waiting lists'),
|
||||
),
|
||||
'access coming list' => array(
|
||||
'title' => t("Access the Who's Coming list"),
|
||||
),
|
||||
'access waiting list' => array(
|
||||
'title' => t("Access the Waiting list"),
|
||||
),
|
||||
'access booking summary' => array(
|
||||
'title' => t('Access the summary of booking forms'),
|
||||
),
|
||||
@@ -256,14 +259,14 @@ function booking_menu() {
|
||||
$items['coming'] = array(
|
||||
'title' => "Who's Coming?",
|
||||
'page callback' => 'booking_coming_page',
|
||||
'access arguments' => array("access lists"),
|
||||
'access arguments' => array("access coming list"),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['waitinglist'] = array(
|
||||
'title' => "Who's on the waiting list?",
|
||||
'page callback' => 'booking_waitinglist_page',
|
||||
'access arguments' => array("access lists"),
|
||||
'access arguments' => array("access waiting list"),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
|
@@ -77,9 +77,6 @@ function booking_report_summary() {
|
||||
if ($person->booking_married == 'Y')
|
||||
$married_count++;
|
||||
}
|
||||
|
||||
//convert that to years
|
||||
//$average_age = floor((time() - $average) / (60 * 60 * 24 * 365.25));
|
||||
|
||||
//bookings by ecclesia
|
||||
$query = db_select('booking_person', 'p')
|
||||
|
Reference in New Issue
Block a user