Remove the conference rooms from the menu, leave conference center and if the user doesn't have access to the conference center redirect them to the conference room.
This commit is contained in:
@@ -36,24 +36,6 @@
|
||||
$apps[$x]['menu'][$y]['path'] = '/app/conference_centers/conference_centers.php';
|
||||
$apps[$x]['menu'][$y]['groups'][] = 'admin';
|
||||
$apps[$x]['menu'][$y]['groups'][] = 'superadmin';
|
||||
$y++;
|
||||
$apps[$x]['menu'][$y]['title']['en-us'] = 'Conference Rooms';
|
||||
$apps[$x]['menu'][$y]['title']['es-mx'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['de'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['de-ch'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['de-at'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['fr'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['fr-ca'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['fr-ch'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['pt-pt'] = '';
|
||||
$apps[$x]['menu'][$y]['title']['pt-br'] = '';
|
||||
$apps[$x]['menu'][$y]['uuid'] = '0daea9eb-5555-4325-be57-e3b6a30d5253';
|
||||
$apps[$x]['menu'][$y]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5';
|
||||
$apps[$x]['menu'][$y]['category'] = 'internal';
|
||||
$apps[$x]['menu'][$y]['path'] = '/app/conference_centers/conference_rooms.php';
|
||||
$apps[$x]['menu'][$y]['groups'][] = 'user';
|
||||
$apps[$x]['menu'][$y]['groups'][] = 'admin';
|
||||
$apps[$x]['menu'][$y]['groups'][] = 'superadmin';
|
||||
|
||||
//permission details
|
||||
$y = 0;
|
||||
|
||||
@@ -29,10 +29,16 @@ require_once "includes/checkauth.php";
|
||||
if (permission_exists('conference_center_view')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
if (permission_exists('conference_room_view')) {
|
||||
//redirect to the conference rooms
|
||||
header( 'Location: conference_rooms.php') ;
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
require_once "includes/header.php";
|
||||
require_once "includes/paging.php";
|
||||
|
||||
@@ -50,7 +56,7 @@ require_once "includes/paging.php";
|
||||
echo "<table width='100%' border='0'>\n";
|
||||
echo " <tr>\n";
|
||||
echo "<td align='left' width='30%' nowrap='nowrap'><b>Conference Centers</b></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='conference_rooms.php'\" value='back'></td>\n";
|
||||
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='Rooms' onclick=\"window.location='conference_rooms.php'\" value='Rooms'></td>\n";
|
||||
echo " </tr>\n";
|
||||
echo " <tr>\n";
|
||||
echo " <td align='left' colspan='2'>\n";
|
||||
|
||||
@@ -68,9 +68,6 @@ require_once "includes/paging.php";
|
||||
}
|
||||
}
|
||||
}
|
||||
//echo "<pre>\n";
|
||||
//print_r($conference);
|
||||
//echo "</pre>\n";
|
||||
|
||||
//get variables used to control the order
|
||||
$order_by = $_GET["order_by"];
|
||||
|
||||
Reference in New Issue
Block a user