<?php
declare(strict_types=1);

require_once __DIR__ . '/../includes/auth.php';
require_login();

$id = (int)($_GET['id'] ?? ($_GET['edit'] ?? 0));
$target = '/organization/job-types.php';
if ($id > 0) {
    $target .= '?edit=' . $id;
}

header('Location: ' . $target);
exit;
