keybits
keybits

Reputation: 4423

Wagtail: how to restrict all pages to logged in users only

I am using Wagtail for an internal knowledge base. I would like all pages to default to 'Accessible to logged in users'.

This is possible on a page-by-page basis using the 'privacy' setting: http://docs.wagtail.io/en/v1.8.1/advanced_topics/privacy.html

How can I make this the default for all pages?

Upvotes: 2

Views: 514

Answers (1)

Serafeim
Serafeim

Reputation: 15084

The privacy settings are inherited by all child pages so if you make your Homepage accessible to logged in users then all its children (i.e all pages) will also have the same privacy setting! Notice that by "Homepage" I mean the root page of your wagtail tree ie the first page that you see to its right after you click "Explorer" in wagtail admin (on single site wagtail setups).

Upvotes: 2

Related Questions