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

export type CustomsWarehousesRefAction = 'view';

export function userHasCustomsWarehousesRefAction(user: User | null, action: CustomsWarehousesRefAction): boolean {
	return userHasPermission(user, `ref_customs_warehouses.${action}`);
}
