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