<?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 How do I allow a consumer to add comments? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-allow-a-consumer-to-add-comments/m-p/15123#M6684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to update the default Consumer role to allow adding comments to content. &lt;/P&gt;&lt;P&gt;I followed the steps at this community post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/thread/200805"&gt;Consumer can add Comments&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It wasn't too clear. Here's what we added to our permissionDefinitions.xml file:&lt;/P&gt;&lt;PRE class=""&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;&amp;lt;permissionSet type="fm:discussable" expose="selected"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissionGroup name="CreateComments" extends="false" expose="false" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissionGroup name="ReadComments" extends="false" expose="false" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permission name="_CreateComments" expose="false" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;grantedToGroup permissionGroup="CreateComments" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/permission&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permission name="_ReadComments" expose="false" &amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;grantedToGroup permissionGroup="ReadComments" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/permission&amp;gt;&amp;nbsp; &lt;BR /&gt;&amp;lt;/permissionSet&amp;gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what we added to our sitePermissionDefinitions.xml&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;permissionGroup name="SiteConsumer" allowFullControl="false" expose="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;includePermissionGroup permissionGroup="Consumer" type="cm:cmobject" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;includePermissionGroup permissionGroup="CreateComments" type="fm:discussable" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;lt;includePermissionGroup permissionGroup="ReadComments" type="fm:discussable" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;includePermissionGroup permissionGroup="ReadPermissions" type="sys:base" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/permissionGroup&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both files were located at:&lt;/P&gt;&lt;P&gt;{alfreco}\tomcat\shared\classes\alfresco\extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This did not work. What are we missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2017 16:57:49 GMT</pubDate>
    <dc:creator>vezance</dc:creator>
    <dc:date>2017-09-25T16:57:49Z</dc:date>
    <item>
      <title>How do I allow a consumer to add comments?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-allow-a-consumer-to-add-comments/m-p/15123#M6684</link>
      <description>I've been trying to update the default Consumer role to allow adding comments to content. I followed the steps at this community post:Consumer can add Comments&amp;nbsp;It wasn't too clear. Here's what we added to our permissionDefinitions.xml file:&amp;lt;permissionSet type="fm:discussable" expose="selected"&amp;gt;</description>
      <pubDate>Mon, 25 Sep 2017 16:57:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-allow-a-consumer-to-add-comments/m-p/15123#M6684</guid>
      <dc:creator>vezance</dc:creator>
      <dc:date>2017-09-25T16:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I allow a consumer to add comments?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-allow-a-consumer-to-add-comments/m-p/15124#M6685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Addinga custom permission will never "magically" make a feature work. No component is checking for a "CreateComments" permission, so adding it has no effect. The poster from the thread you linked also includes the abstract instruction: "&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;After that you need to extend the comments webscripts in share so they do not use the Create permission, but CreateComments permission . I think it's the comments-list.js file, but I can't find my example code for this." This sounds like it was intended to work with the custom permission, but actually won't work at all as well, since it is just a UI component checking permissions, but regardless of its check results the backend will still fail&amp;nbsp;due to lack of the right permissions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;What you'd need to do is apply some sort of customisation / logic that automatically adds the "Contributor" permission on the discussion node for a document to users with Consumer / Read privileges&amp;nbsp;on the document. Unfortunately, that would be quite an inefficient approach. Alternatively, you could try to implement a DynamicAuthority - combined with a "globalPermission" role definition in a permission definition XML - that dynamically grants the relevant Contributor privilege on&amp;nbsp;content / discussable items if the current user has read permissions. That avoids having to create many ACLs on each node individually, but requires Java implementation. Once that is done, you might still have to do some UI customisation to activate the comment action for Consumers, but then at least the action would be supported by the backend.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 07:59:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-allow-a-consumer-to-add-comments/m-p/15124#M6685</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-09-27T07:59:38Z</dc:date>
    </item>
  </channel>
</rss>

