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,
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user