AnsweredAssumed Answered

Add comment permission

Question asked by e-no91 on May 16, 2014
Latest reply on May 16, 2014 by e-no91
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-comments-07082013-1535, 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.

Outcomes