Skip to content

Commit

Permalink
SAK-20077 users without rwiki.update permission can't comment, but st…
Browse files Browse the repository at this point in the history
…ill see links to generate new and edit existing comments (sakaiproject#3709)
  • Loading branch information
bjones86 authored Dec 22, 2016
1 parent 9531c06 commit 633ec02
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions rwiki/rwiki-tool/tool/src/webapp/WEB-INF/vm/macros.vm
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,12 @@ ${util.formatDateTime($date,$request)}
<h5 class="commentsTitle specialLink" >
<a href="#" id="commentsToggle" class="toggleOpen">${rlb.jsp_hide_comments}</a>
<span id="totalComments" class="textPanelFooter"></span>
<span class="commentsToolBar">
<a href="#" id="createCommentLink" onclick="ajaxRefPopup(this,'${util.escapeHtml(${renderBean.newCommentURL})}',0); return false;" >${rlb.jsp_addcomment}</a>
</span>
</h5>
#if (${renderBean.canEdit})
<span class="commentsToolBar">
<a href="#" id="createCommentLink" onclick="ajaxRefPopup(this,'${util.escapeHtml(${renderBean.newCommentURL})}',0); return false;" >${rlb.jsp_addcomment}</a>
</span>
#end
</h5>
</li>
</ul>
<ul class="rwiki_comments specialLink" id ="commentsList">
Expand All @@ -295,10 +297,12 @@ ${util.formatDateTime($date,$request)}
<li class="rwikicommentbody_${comment.commentLevel} commentList">
<div class="commentHeader"><span class="commentAuthor">#formatDisplayName(${comment.rwikiObject.user})</span><span class="textPanelFooter">(${comment.rwikiObject.version})</span>
<ul class="actionItem itemAction">
<li><span>
<a href="#" onclick="ajaxRefPopup(this,'${util.escapeHtml(${comment.newCommentURL})}',0); return false;" >${rlb.jsp_comment}</a>
</span></li>
#if (${comment.canEdit})
#if (${renderBean.canEdit})
<li><span>
<a href="#" onclick="ajaxRefPopup(this,'${util.escapeHtml(${comment.newCommentURL})}',0); return false;" >${rlb.jsp_comment}</a>
</span></li>
#end
#if (${comment.canEdit} && ${renderBean.canEdit})
<li><span>
<a href="#" onclick="ajaxRefPopup(this,'${util.escapeHtml(${comment.editCommentURL})}',0); return false;" >${rlb.jsp_edit}</a>
</span></li>
Expand Down

0 comments on commit 633ec02

Please sign in to comment.