i’m using user permissions which is fine to allow a role to create/edit/delete in some pages/subpages. It’s very helpful and reliable.
I would need to go further and allow a role to create a page, but in the same role-group, only the initial author would be allowed to edit/delete his page.
Another role (like admin) could of course do all.
Is it possible already, or maybe an extension would help ? I searched a bit before to asked and did not found this.
OK thanks for your help,. So it seems possible. Then the hook should test logged user’s role and then prevent / allow based on author login match within certain roles.
I’m not a fan of hierarchy but i’m in a case we would really need it. Thanks again, i’ll try to make that.
For this to work, you would have to store the author who creates the page as a default value in an authors field that is disabled. Then test if the current user is the the same or different from the user stored in this field.