<?php
/**
 * Settings-level permission helper used by settings pages
 * that need an extra guard beyond simple login.
 */
require_once __DIR__ . '/project_permissions.php';

function gp_can_access_settings(PDO $pdo): bool
{
    $role = gp_user_role($pdo);
    return gp_is_full_project_access_role($role);
}
