Files
ops-Gazelle/sections/apply/index.php
T

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;
}