<?php
declare(strict_types=1);

namespace Ekesto\CacheAutopilot\Access;

use Ekesto\CacheAutopilot\AccessControl;

/**
 * Lite-safe default access-control override provider.
 *
 * A Lite build grants no non-admin access: stored role/user overrides in the
 * `ekesto_ca_access_control` option are ignored (preserved, never deleted). Every
 * non-admin therefore resolves to MODE_NONE; administrators are granted by
 * AccessControl before any provider is consulted.
 */
final class NullAccessOverrideProvider implements AccessOverrideProviderInterface
{
    public function resolveOverrideMode(int $userId, \WP_User $user): string
    {
        return AccessControl::MODE_NONE;
    }
}
