mirror of https://github.com/interlegis/sapl.git
Browse Source
Files under sapl/private/documentoadministrativo/ are public when the AppConfig.documentos_administrativos setting is DOC_ADM_OSTENSIVO. The previous gate blocked all sapl/private/ paths unconditionally, forcing anonymous users to log in even for ostensivo documents. _is_public_docadm() checks the cached AppConfig setting to exempt ostensivo documents while keeping proposicao and restritivo documents behind the auth redirect. Also fixes wrong import (sapl.base.apps.AppConfig is Django's app-config class; the SAPL model is in sapl.base.models). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>rate-limiter-2026
2 changed files with 11 additions and 1 deletions
Loading…
Reference in new issue