Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Inherit permissions from root page possible?

Started by Phil G 4 years ago · 0 replies · 547 views
4 years ago

I'm trying to require users to login to view any page. I've started by enabling "Use parent access rules" in the Login plugin.
I set up a testpage and a subpage as a child of the testpage and set the testpage to require site.login. Both the testpage and the childpage now show a login form.

I've tried to extend this to the whole site, by setting an access rule for "site.login" on the root page, but it seemingly gets ignored.

Is the root page treated specially by the login system? Is there a simple way to achieve my goal? I've seen the "private site" plugin, but being beta and not having any changes in the repo for 4 years does not fill me with confidence...

Suggested topics

Topic Participants Replies Views Activity
Plugins · by complanar, 2 weeks ago
2 250 4 days ago
Plugins · by Vladimir Novak, 1 month ago
3 594 1 month ago
Plugins · by Mathieu Lecouturier, 2 months ago
3 416 2 months ago
Plugins · by Slebeig, 2 months ago
1 530 2 months ago
Plugins · by Rene, 3 months ago
2 731 3 months ago