mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-17 04:03:13 -04:00
26 lines
612 B
PHP
26 lines
612 B
PHP
<?php
|
|
|
|
switch ($_GET['action'] ?? '') {
|
|
case 'admin':
|
|
if ($Viewer->permitted('admin_manage_applicants')) {
|
|
require_once('admin.php');
|
|
} else {
|
|
require_once('apply.php');
|
|
}
|
|
break;
|
|
|
|
case 'view':
|
|
$appMan = new Gazelle\Manager\Applicant;
|
|
if ($Viewer->permitted('admin_manage_applicants') || $appMan->userIsApplicant($Viewer->id())) {
|
|
require_once('view.php');
|
|
} else {
|
|
require_once('apply.php');
|
|
}
|
|
break;
|
|
|
|
case 'save':
|
|
default:
|
|
require_once('apply.php');
|
|
break;
|
|
}
|