<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Restricting create content menu for a custom type, based on a custom role in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/restricting-create-content-menu-for-a-custom-type-based-on-a/m-p/50588#M19343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;permissionSet type="cm:cmobject" expose="selected"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permissionGroup name="GestorDocumental" allowFullControl="false" expose="true"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;includePermissionGroup permissionGroup="Editor" type="cm:cmobject" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;includePermissionGroup permissionGroup="Delete" type="sys:base" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/permissionGroup&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permissionGroup name="CIDGestorArchivo" allowFullControl="false" expose="true"&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;includePermissionGroup permissionGroup="GestorDocumental" type="cm:folder" /&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/permissionGroup&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;lt;/permissionSet&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;permissionSet type="cm:folder" expose="selected"&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permissionGroup name="CIDGestorArchivo" extends="true" expose="true"/&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;lt;/permissionSet&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the relevant share form config is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;create-content&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;content id="fotoAGADU" label="CIDDAE --&amp;gt; Foto de AGADU" type="pagelink" icon="img" index="230" &amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;param name="page"&amp;gt;create-content?destination={nodeRef}&amp;amp;amp;itemId=im:cid_fotoAGADU&amp;amp;amp;mimeType=text/html&amp;lt;/param&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permissions&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permission allow="true"&amp;gt;CIDGestorArchivo&amp;lt;/permission&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/permissions&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/content&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; &amp;lt;/create-content&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two problems with this config running an Alfresco Community 5.1 with Tomcat 9:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The Label for the new role is not loaded from /conf/alfresco/messages/common.properties. The only solution I have found is to modify the war and change the file there, but that should not be done obviously.&lt;/LI&gt;&lt;LI&gt;Although the custom role is created and I can assign it without problems to a folder, the user with the given permission still can't create content of the custom type, the option is removed from the menu and never shown.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help with any of this, would be greatly appreciated folks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2018 14:15:46 GMT</pubDate>
    <dc:creator>reynanuy</dc:creator>
    <dc:date>2018-06-29T14:15:46Z</dc:date>
    <item>
      <title>Restricting create content menu for a custom type, based on a custom role</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restricting-create-content-menu-for-a-custom-type-based-on-a/m-p/50588#M19343</link>
      <description>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:&amp;lt;permissionSet type="cm:cmobject" expose="selected"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permissionGroup name="GestorDocumental" allowFullControl="false" expose="true"&amp;gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:15:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restricting-create-content-menu-for-a-custom-type-based-on-a/m-p/50588#M19343</guid>
      <dc:creator>reynanuy</dc:creator>
      <dc:date>2018-06-29T14:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Restricting create content menu for a custom type, based on a custom role</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/restricting-create-content-menu-for-a-custom-type-based-on-a/m-p/50589#M19344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys. I managed to get the Create Content menu restriction working, but only with a default base permission like&amp;nbsp;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:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;lt;create-content&amp;gt;&lt;/STRONG&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;content id="fotoAGADU" label="CIDDAE --&amp;gt; Foto de AGADU" type="pagelink" icon="img" index="230" &amp;gt;&lt;/STRONG&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;param name="page"&amp;gt;create-content?destination={nodeRef}&amp;amp;amp;itemId=im:cid_fotoAGADU&amp;amp;amp;mimeType=text/html&amp;lt;/param&amp;gt;&lt;/STRONG&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permissions&amp;gt;&lt;/STRONG&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;permission allow="true"&amp;gt;ChangePermissions&amp;lt;/permission&amp;gt;&lt;/STRONG&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/permissions&amp;gt;&lt;/STRONG&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/content&amp;gt;&lt;/STRONG&gt;&lt;BR style="color: #727174; background-color: #ffffff;" /&gt;&lt;STRONG style="color: #727174; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&amp;lt;/create-content&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2018 13:08:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/restricting-create-content-menu-for-a-custom-type-based-on-a/m-p/50589#M19344</guid>
      <dc:creator>reynanuy</dc:creator>
      <dc:date>2018-07-11T13:08:17Z</dc:date>
    </item>
  </channel>
</rss>

