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

export type ContainersRefAction = 'view';

export function userHasContainersRefAction(user: User | null, action: ContainersRefAction): boolean {
	return userHasPermission(user, `ref_containers.${action}`);
}
