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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

Inherit permissions from root page possible?

Started by Phil G 4 years ago · 0 replies · 379 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 Rene, 1 week ago
2 47 1 week ago
Plugins · by Xavier, 4 weeks ago
2 56 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1182 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 50 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 74 2 months ago