types-nora-api 0.0.338 → 0.0.339
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/classes.js +1 -1
- package/package.json +1 -1
package/dist/classes.js
CHANGED
|
@@ -543,7 +543,7 @@ function decidirAcessoPagina_Rec(pagina, ctx, opts, visitados) {
|
|
|
543
543
|
return { permitido: false, motivo: 'NAO_AUTENTICADO', redirecionarPara: opts.redirectNaoAutenticado };
|
|
544
544
|
if (temSudoBurlarCapacidades(ctx))
|
|
545
545
|
return { permitido: true };
|
|
546
|
-
const folhas = opts.resolverMenuInterno?.(pagina) ?? [];
|
|
546
|
+
const folhas = (opts.resolverMenuInterno?.(pagina) ?? []).filter((p) => String(p.template) !== String(pagina.template));
|
|
547
547
|
const permitido = folhas.some((p) => decidirAcessoPagina_Rec(p, ctx, opts, visitados).permitido);
|
|
548
548
|
if (!permitido)
|
|
549
549
|
return { permitido: false, motivo: 'SEM_CAPACIDADE', redirecionarPara: opts.redirectSemCapacidade };
|