Permissions
Issue #6
new
Why users need permission "View Watchers & Voters" instead of "Browse Projects" to see threaded comments ?
Comments (2)
-
-
The code in HandleComments.java seems to break when users don't have that permission:
public Response commentData(@QueryParam("issueid") final Long issueid) { ... if (null != issueObject && permissionManager.hasPermission(Permissions.VIEW_VOTERS_AND_WATCHERS, issueObject, loggedInUser)) {
Our commenters do not all have
Permissions.VIEW_VOTERS_AND_WATCHERS
, so their view shows the comments as linear rather than threaded. Can I safely change this to check forPermissions.BROWSE
? - Log in to comment
Permissions.VIEW_VOTERS_AND_WATCHERS is used for the Vote functionality of the add-on. Not for the threaded comments feature itself.