diff --git a/admin/registration_list.php b/admin/registration_list.php index 8eb0055..594ffc6 100644 --- a/admin/registration_list.php +++ b/admin/registration_list.php @@ -24,8 +24,10 @@ require_once('../common.inc.php'); require_once('../user.inc.php'); - user_auth_required('committee', 'admin'); - require_once('../register_participants.inc.php'); + +$auth_type = user_auth_required(array('fair','committee'), 'admin'); + +//require_once('../register_participants.inc.php'); if($_GET['year']) $year=$_GET['year']; else $year=$config['FAIRYEAR']; @@ -60,12 +62,17 @@ case 'delete': exit; } - - send_header("Registration Management", +if($auth_type == 'committee') { + send_header("Registration Management", array('Committee Main' => 'committee_main.php', 'Administration' => 'admin/index.php', 'Participant Registration' => 'admin/registration.php') ); +} else { + send_header("Registration Management", + array('Fair Main' => 'fair_main.php') ); +} + ?>