Jump to content

Recommended Posts

Posted

Hi there,

I'm trying to limit a specific user can only add pages as a child (under) a page created by themselves.  

The discussion in this thread gets close, it's a working solution on how to only allow editing on pages you created yourself. I'm using this and it works well. But I'm not sure how to modify this for my purposes. 

 

I'm suspecting I need to do to something like

$this->addHookBefore("Page::added", $this, 'added');

then in "added" check if parent is created by the current user. But I'm a bit lost on how exactly to do this.

thank you! /J

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...