/**
 * Datos de referencia — permisos `ref_countries.*` (seed_v2.py `permissions_reference`).
 * Solo lectura en seed actual; `action` reservado por si se amplía el CRUD.
 * Países
 */
import type { User } from '$lib/auth';
import { userHasPermission } from '$lib/auth';

export type CountriesRefAction = 'view';

export function userHasCountriesRefAction(user: User | null, action: CountriesRefAction): boolean {
	return userHasPermission(user, `ref_countries.${action}`);
}
