@Override public boolean hasViewPermission(PermissionChecker permissionChecker) throws PortalException { DiscussionPermission discussionPermission = CommentManagerUtil.getDiscussionPermission(permissionChecker); return discussionPermission.hasPermission(_workflowableComment.getCommentId(), ActionKeys.VIEW); }
@Override public boolean hasEditPermission(PermissionChecker permissionChecker) throws PortalException { DiscussionPermission discussionPermission = CommentManagerUtil.getDiscussionPermission(permissionChecker); return discussionPermission.hasUpdatePermission(_workflowableComment.getCommentId()); }