Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Prevent view access to pages for Logged-in Users


Go to End


1253 Views

Avatar
Motoma

Community Member, 7 Posts

17 December 2009 at 8:40am

Hello all,

I would like to add the ability to set a Pages as viewable only by users who are not logged in, as well as add an option to the Page->Access screen to set this option.

Is it possible to do this in a generic way that is carried on to all Page subclasses, and doesn't involve edition the base code?

Thanks in advance for any insight.