Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

Inherit permissions from root page possible?

Started by Phil G 4 years ago · 0 replies · 493 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 Vladimir Novak, 2 weeks ago
3 293 2 weeks ago
Plugins · by Mathieu Lecouturier, 3 weeks ago
3 277 3 weeks ago
Plugins · by Slebeig, 2 months ago
1 403 2 months ago
Plugins · by Rene, 2 months ago
2 574 2 months ago
Plugins · by Xavier, 3 months ago
2 490 3 months ago