Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)

128375 jvonka: MNT-16446: Edit Comment permission (part 3) 
   - for CMIS (and also future v1 Nodes REST API)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@128386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2016-06-27 19:08:30 +00:00
parent a3d4f5c0d1
commit 0020afb335
4 changed files with 33 additions and 111 deletions

View File

@@ -55,7 +55,6 @@ import org.springframework.extensions.webscripts.WebScriptRequest;
* @author Sergey Scherbovich (based on existing JavaScript webscript controller)
* @since 4.1.7.1
*/
public class CommentsPost extends AbstractCommentsWebScript
{
/**
@@ -146,7 +145,8 @@ public class CommentsPost extends AbstractCommentsWebScript
{
isUpdated = ((Date)modified).getTime() - ((Date)created).getTime() > 5000;
}
// TODO refactor v0 Comments API to use CommentService (see ACE-5437)
Serializable owner = this.nodeService.getProperty(commentNodeRef, ContentModel.PROP_OWNER);
String currentUser = this.serviceRegistry.getAuthenticationService().getCurrentUserName();