<?php
require_once __DIR__ . '/../../app/core/bootstrap.php';
require_once __DIR__ . '/../../app/core/project_permissions.php';
auth_require_login();

if (!function_exists('gp_is_full_project_access_role') || !gp_is_full_project_access_role(gp_user_role(crm_pdo()))) {
    http_response_code(403);
    exit('Access denied.');
}

/*
 * Protected migration entry point.
 * Keep this file inaccessible to guests. Use only while logged in as admin.
 * Delete this file after migration is complete.
 */
echo 'Protected migration file. Run only intentionally and remove after use.';
