<?php
/**
 * Demo Oracle — abandon de la base selectionnee.
 */
require_once dirname(__DIR__, 2) . '/bootstrap.php';
require_once __DIR__ . '/lib/boot.php';

$auth->requireRole('demo_oracle_admin', 'demo_oracle_user');

if (!$moduleRegistry->canAccess('demo_oracle', $currentUser)) {
    http_response_code(403);
    include WEBROOT_PATH . '/includes/403.php';
    exit;
}

Session::remove('demo_oracle_selected_db');
header('Location: ' . demo_oracle_url('home'));
exit;
