cancel
Showing results for 
Search instead for 
Did you mean: 

Add comment permission

e-no91
Champ in-the-making
Champ in-the-making
How do I allow add comment for editor from the permissiondefinition.xml?
And what is Execute for?

Thanks in advance.

EDIT: From this forum http://forums.alfresco.com/forum/developer-discussions/alfresco-share-development/consumer-can-add-c..., I've check the comment-list.js file

Upon this code

/**
       * Update UI to reflect current user's permissions
       *
       * @method handlePermissions
       */
      handlePermissions: function CommentsList_handlePermissions(oRequest, oFullResponse)
      {
         // Examine the user permissions on the parent node
         var permissions = oFullResponse.nodePermissions || {};
         if (permissions["create"])
         {
            Dom.removeClass(this.id + "-actions", "hidden");
         }

         // Return response unmodified
         return oFullResponse;
      },


I'm guessing that I need to have "create" permission to users that I want to be able to add comment. But how do I go around adding Editor into the list? I have no idea how to code it.
2 REPLIES 2

openpj
Elite Collaborator
Elite Collaborator
<blockquote>And what is Execute for?</blockquote>
The Execute permission allows Alfresco to manage the extension contents such as scripts, webscripts or configuration nodes that you can store inside the Data Dictionary or in the classpath of the application.

Hope this helps.

e-no91
Champ in-the-making
Champ in-the-making
Thanks a lot!