/**
 * Catálogo general — permisos `cat_classification.*` (`permissions_general` en seed_v2.py).
 * Conceptos de clasificación
 */
import type { User } from '$lib/auth';
import { userHasPermission } from '$lib/auth';

export type ClassificationConceptsCatalogAction = 'view' | 'create' | 'edit' | 'delete';

export function userHasClassificationConceptsAction(user: User | null, action: ClassificationConceptsCatalogAction): boolean {
	return userHasPermission(user, `cat_classification.${action}`);
}
