cancel
Showing results for 
Search instead for 
Did you mean: 

Create discussion on node

sanketgosavi
Champ in-the-making
Champ in-the-making
Hi,

Normal user is unable to add comment as the user is not having permission to create discussion on node.

It is breaking on this line of comments.lib.js
commentsFolder = commentService.createCommentsFolder(node);


How to resolve this issue.

3 REPLIES 3

scouil
Star Contributor
Star Contributor
Hi,

Comments are stored as nodes under the the document node.
So if your user doesn't have the permission to create a child, it's expected that he can't comment.
Actually he shouldn't even see the "add comment" section at all. What interface are you using?

sanketgosavi
Champ in-the-making
Champ in-the-making
Hi,

I have removed the class="hidden" from comments-list.get.html.ftl to allow everyone to add comment.

However, everyone don't have permission to create content.

Createchildren will allow to add comment but it will also allow me to upload content.

Which permission I need to add to allow  user to add comment but not allow to upload content ?

openpj
Elite Collaborator
Elite Collaborator
<blockquote>Which permission I need to add to allow user to add comment but not allow to upload content ?</blockquote>
Unfortunately you can't do that with the default web applications provided by Alfresco. You should add your custom logic to this apps for changing this behavior but this means changing the point of view related to the manipulation of contents.
Actually these applications are content-centric so this means that a specific permission is related to the content and all the stuff around the content itself.