cancel
Showing results for 
Search instead for 
Did you mean: 

Consumer can add Comments

magico
Champ in-the-making
Champ in-the-making
How can I define the user or group with the rol "Consumer" in a site can add comments???

I need That users only read documents and Add comments.

How can i create new Role with this costomizations???


I appreciate your response.
6 REPLIES 6

kamielvdz
Champ in-the-making
Champ in-the-making
I developed something similar a while ago. I did this by extending the permissions model.

Example:


<permissionSet type="fm:discussable" expose="selected">
<permissionGroup name="CreateComments" extends="false" expose="false" />   
<permissionGroup name="ReadComments" extends="false" expose="false" />   
<permission name="_CreateComments" expose="false" >
   <grantedToGroup permissionGroup="CreateComments" />
  </permission>
  <permission name="_ReadComments" expose="false" >
   <grantedToGroup permissionGroup="ReadComments" />
    </permission>
      
</permissionSet>

<includePermissionGroup permissionGroup="CreateComments" type="fm:discussable" />
         


And add this to the default consumer permission group and every other that needs to be able to do create comments:

<permissionGroup name="Consumer" allowFullControl="false" expose="true" >
<includePermissionGroup permissionGroup="CreateComments" type="fm:discussable" />        
</permissionGroup>


Expose this permission to the documentlibrary.

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.

mjf
Champ in-the-making
Champ in-the-making
Hi Kamielvdz,

>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.

Did you ever find your code for this? I am trying to create a ConsumerWithComments role for the main Share repository, and need to make the same changes - I'd love to validate them with your example code if you have managed to find it.

Cheers,

Michael.

mjf
Champ in-the-making
Champ in-the-making
Hi Kamielvdz,

>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.

Did you ever find your code for this? I am trying to create a ConsumerWithComments role for the main Share repository, and need to make the same changes - I'd love to validate them with your example code if you have managed to find it.

e-no91
Champ in-the-making
Champ in-the-making
Is this solved? I'm looking for a way to do this too… I wanted my editor role to be able to comment on contents. Which file should I edit to add the CreateComment permissionGroup? Thanks!

mythily
Champ in-the-making
Champ in-the-making
Hi,

Am working on alfresco-5.0.a and my requirement is to allow the consumers to be able to comment on documents in document library.Please help me on this.

Thanks,
Mythily

amelsjk
Champ in-the-making
Champ in-the-making

hi mythily

did you find a solution for this??