Disallow creation of resource types
From OpenCms Wiki
(Difference between revisions)
(→Permit certain resource types from being created by normal users) |
m (Changed "control permission" to "create permission". See also OpenCms Mailinglist on December 7th 2009.) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Configuring OpenCms]] | ||
==Permit certain resource types from being created by normal users== | ==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 in the corresponding <module> node in opencms-modules.xml (or opencms-workplace.xml for the standard resource types). By taking away the | + | It is possible to hide certain resourcetypes from the dialog that allows creation of new files. This is done in the explorer type configuration in the corresponding <module> node in opencms-modules.xml (or opencms-workplace.xml for the standard resource types). By taking away the create 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: |
<source lang="xml"> | <source lang="xml"> | ||
.. | .. | ||
Line 15: | Line 16: | ||
</source> | </source> | ||
+ | |||
+ | ===Related topics=== | ||
+ | You can also [[explorertype|group resource types]] in subsections the "new"-dialogue. |
Latest revision as of 11:25, 20 September 2012
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 in the corresponding <module> node in opencms-modules.xml (or opencms-workplace.xml for the standard resource types). By taking away the create 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>
Related topics
You can also group resource types in subsections the "new"-dialogue.