Separate permissions for coming and waiting list

This commit is contained in:
2013-10-03 23:21:50 +10:00
parent 89d950f7e3
commit 42c38ba2f0
2 changed files with 8 additions and 8 deletions

View File

@@ -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,
); );

View File

@@ -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')