diff --git a/src/features/import/ImportPage.tsx b/src/features/import/ImportPage.tsx index 0583274..70613ee 100644 --- a/src/features/import/ImportPage.tsx +++ b/src/features/import/ImportPage.tsx @@ -43,10 +43,9 @@ export function ImportPage() { const [isProcessing, setIsProcessing] = useState(false) const [loadingSampleId, setLoadingSampleId] = useState(null) - // Solo platform_admin y member pueden importar BPMN useEffect(() => { if (!user) return - const allowed = ['platform_admin', 'member'] + const allowed = ['platform_admin', 'member', 'client_editor'] if (!allowed.includes(user.platformRole)) { void navigate({ to: '/' }) } @@ -91,7 +90,7 @@ export function ImportPage() { tags: [], ownerId: user!.id, updatedBy: user!.id, - orgId: null, + orgId: user!.orgId ?? null, areaId: null, } @@ -201,8 +200,7 @@ export function ImportPage() { } } - const isClientRole = user?.platformRole === 'client_editor' || user?.platformRole === 'client_viewer' - if (isClientRole) return null + if (user?.platformRole === 'client_viewer') return null return (
@@ -212,7 +210,7 @@ export function ImportPage() {
- Process Cost Platform · MVP Fase 0 + InQ ROI

Cuantificá el costo operativo
de tus procesos @@ -276,8 +274,8 @@ export function ImportPage() { - {/* Procesos de ejemplo — visibles directamente */} -
+ {/* Procesos de ejemplo — solo para InQuality */} + {user?.platformRole !== 'client_editor' &&

O cargá un proceso de ejemplo con un click

@@ -311,11 +309,7 @@ export function ImportPage() { ) })}
-
- -

- 100% en tu navegador · Sin backend · Sin registro · Datos guardados localmente -

+

}