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

export type CustomsSectionsRefAction = 'view';

export function userHasCustomsSectionsRefAction(user: User | null, action: CustomsSectionsRefAction): boolean {
	return userHasPermission(user, `ref_customs_sections.${action}`);
}
