Forums / Developer / Limiting possible child class types?
Gabriel Ambuehl
Monday 14 April 2003 8:05:44 am
I was wondering whether I can somehow limit the types of child classes to a given class a normal user can create.
After all, if I have a customer class, I don't want people to write articles under it, adding normal comments and stuff is ok, though (well all know that you must stop users from having too many possibilities to do stupid things).
Visit http://triligon.org
Peter Bailey
Monday 14 April 2003 9:48:47 am
Best of my knowledge, that's all handled by the role-policies.
When making a customised "create" policy, your last option is to restrict creation to a specific class-type for the parent.
Paul Borgermans
Monday 14 April 2003 10:46:58 am
And the setup of sections to impose the locations in the node tree where users can create their stuff
Paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
Tuesday 15 April 2003 3:31:58 am
Roles perfectly do the job. It might not be the most comfortable of all ways to set it up but sure as hell very flexible. You guys are a great help!