mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
128357 jvonka: MNT-16446: Edit Comment permission (part 2b) - follow-on to fix test fallout - for v1 api git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@128364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -818,11 +818,20 @@ public class TestNodeComments extends EnterpriseTestApi
|
|||||||
}
|
}
|
||||||
}, person11.getId(), network1.getId());
|
}, person11.getId(), network1.getId());
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
publicApiClient.setRequestContext(new RequestContext(network1.getId(), person11.getId()));
|
publicApiClient.setRequestContext(new RequestContext(network1.getId(), person11.getId()));
|
||||||
|
|
||||||
Comment updatedComment = new Comment();
|
Comment updatedComment = new Comment();
|
||||||
updatedComment.setContent("my comment");
|
updatedComment.setContent("my comment");
|
||||||
commentsProxy.updateNodeComment(nodeRef1.getId(), createdComment.getId(), updatedComment);
|
commentsProxy.updateNodeComment(nodeRef1.getId(), createdComment.getId(), updatedComment);
|
||||||
|
|
||||||
|
fail("");
|
||||||
|
}
|
||||||
|
catch(PublicApiException e)
|
||||||
|
{
|
||||||
|
assertEquals(HttpStatus.SC_FORBIDDEN, e.getHttpResponse().getStatusCode());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
|
Reference in New Issue
Block a user