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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

Our old forums are still available as a read-only archive.

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

Possible Improvement to Security?

Go to End

6 Posts   2056 Views


Community Member, 33 Posts

10 July 2008 at 2:46am


Maybe you can already do this, if so please let me know how, but at the minute in SilverStripe you can set the Access options for a page to be accessibly to a specific group. However this setting doesn't pass down to Secondary, Tertiary etc pages below that page.

Scenario, I want to create a group for a set of people to be able to edit one page and it's subsequent siblings. However if they create a page without setting the Access options to just be their group, people in other groups can edit that page.

Potential update to silverstripe?


Forum Moderator, 5523 Posts

10 July 2008 at 10:14am

Edited: 10/07/2008 10:15am

Yes this would be a good feature - when you create a child page it defaults to the access info of the parent page.

Make a ticket on as it would be good to see this.


Forum Moderator, 922 Posts

10 July 2008 at 10:30am

Edited: 10/07/2008 10:40am

Good point. I think, rather than it always default to it's parent access settings, there could be a checkbox (checked by default) which marks this has having inheritable access settings. If it's not checked, then subsequent pages that are created as children of the page don't inherit its settings.

For now, you can always create your own custom code to do this. For example:

function onBeforeWrite() {
	if($this->Parent()) {
		$this->EditorsGroup = $this->Parent()->EditorsGroup;

This code would set the "EditorsGroup" field in the SiteTree table to the parent page's EditorsGroup field, if the parent exists. This would obviously not do anything for the root level pages in the tree.

As willr said, please open a ticket on our open source tracker here:



Community Member, 33 Posts

24 July 2008 at 7:48pm

I'm getting an Error: Forbidden when trying to create a new ticket for this? I've signed up.

So were do I add that code? In the constructor of the Page.php.


Community Member, 33 Posts

19 August 2008 at 9:24pm

Were would I add in the onBeforeWrite function?


Community Member, 712 Posts

20 August 2008 at 7:39am