Tilpasninger for å støtte requests til spesifikke layers basert på url/context #2211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bakgrunnen her er at vi ønsker å tilgjengeliggjøre layers-lokaliserte filer til publikum. Det har vært to problemer med dette:
everyone
for å kunne serveres til uinnloggede brukere. Å endre på denne tilgangsstyringen nå vil kreve en re-publisering av alt innhold, som hadde vært en ganske kjip oppgave, ettersom vi da må ta høyde for avpublisert eller upublisert innhold i layer'ene.1 løses med vhost mappinger til hvert layer repo. 2 løses ved å gi en midlertidig request-spesifikk innloggingssesjon for uinnloggede brukere som request'er en publisert fil.
Se også navikt/nav-enonicxp-frontend#2014
Oppsummering av hva som er gjort
system.admin
betyr faktisk administrator, mensystem.admin.login
betyr bare at du kan logge inn i "admin"-UI'et (dvs portal-admin) 😅.