06-29-2018 10:15 AM
HI. I am having problems restricting the create content menu items, based on the Permissions of a folder. I am using the following custom role definition:
<permissionSet type="cm:cmobject" expose="selected">
<permissionGroup name="GestorDocumental" allowFullControl="false" expose="true">
<includePermissionGroup permissionGroup="Editor" type="cm:cmobject" />
<includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" />
<includePermissionGroup permissionGroup="Delete" type="sys:base" />
</permissionGroup>
<permissionGroup name="CIDGestorArchivo" allowFullControl="false" expose="true">
<includePermissionGroup permissionGroup="GestorDocumental" type="cm:folder" />
</permissionGroup>
</permissionSet>
<permissionSet type="cm:folder" expose="selected">
<permissionGroup name="CIDGestorArchivo" extends="true" expose="true"/>
</permissionSet>
And the relevant share form config is:
<create-content>
<content id="fotoAGADU" label="CIDDAE --> Foto de AGADU" type="pagelink" icon="img" index="230" >
<param name="page">create-content?destination={nodeRef}&itemId=im:cid_fotoAGADU&mimeType=text/html</param>
<permissions>
<permission allow="true">CIDGestorArchivo</permission>
</permissions>
</content>
</create-content>
I have two problems with this config running an Alfresco Community 5.1 with Tomcat 9:
Any help with any of this, would be greatly appreciated folks.
07-11-2018 09:08 AM
Hey guys. I managed to get the Create Content menu restriction working, but only with a default base permission like ChangePermissions. This of course is not acceptable, as I need the custom role I mentioned before, but can help give us a clue of what is going wrong here. This is the code I used by the way:
<create-content>
<content id="fotoAGADU" label="CIDDAE --> Foto de AGADU" type="pagelink" icon="img" index="230" >
<param name="page">create-content?destination={nodeRef}&itemId=im:cid_fotoAGADU&mimeType=text/html</param>
<permissions>
<permission allow="true">ChangePermissions</permission>
</permissions>
</content>
</create-content>
Explore our Alfresco products with the links below. Use labels to filter content by product module.