Disallow creation of resource types
From OpenCms Wiki
Revision as of 11:48, 23 June 2009 by Achimwestermann (Talk | contribs)
Permit certain resource types from being created by normal users
It is possible to hide certain resourcetypes from the dialog that allows creation of new files. This is done in the explorer type configuration. By taking away the control permission (c). Note that it is not sufficient to take away that permission from the role WORKPLACE_USER. Also the Group Users must not have that right:
.. <explorertypes> <explorertype name="layoutpage" key="fileicon.layoutpage" icon="layoutpage.gif" reference="xmlcontent"> <newresource uri="newresource_xmlcontent.jsp?newresourcetype=layoutpage" order="19" autosetnavigation="false" autosettitle="false" info="desc.layoutpage"/> <accesscontrol> <accessentry principal="ROLE.WORKPLACE_USER" permissions="+r+v+w-c"/> <accessentry principal="GROUP.Users" permissions="+r+v+w-c"/> </accesscontrol> </explorertype> </explorertypes>