Changeset 28613

Show
Ignore:
Timestamp:
01/09/08 18:55:35 (9 months ago)
Author:
ddupraz
Message:

NXP-1919 document_thread and post_actions template updated to check write right on threads

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-forum/src/main/resources/nuxeo.war/incl/post_actions.xhtml

    r20719 r28613  
    1111    value="#{postAction.isPostPublished(threadEntry.comment)}"> 
    1212 
     13    <nxu:methodResult name="canAnswer" 
     14    value="#{postAction.checkWritePermissionOnThread}"> 
     15 
    1316    <h:commandLink value="#{messages['command.comments.reply']}" 
    1417      action="#{commentManagerActions.beginComment}" 
    15       rendered="#{isPostPublished}"> 
     18      rendered="#{isPostPublished && canAnswer}"> 
    1619      <f:param name="replyCommentId" value="#{threadEntry.comment.id}"/> 
    1720    </h:commandLink> 
    1821 
    1922  </nxu:methodResult> 
    20  
     23</nxu:methodResult> 
    2124  <nxu:methodResult name="isPrincipalModerator" 
    2225    value="#{threadAction.isPrincipalModerator()}"> 
  • org.nuxeo.ecm.platform/branches/5.1/nuxeo-platform-forum/src/main/resources/nuxeo.war/incl/tabs/document_thread.xhtml

    r26753 r28613  
    7676      rendered="#{allPosts.size > 0 and !commentManagerActions.commentStarted}" 
    7777      layout="block"> 
     78       <nxu:methodResult name="canAnswer" 
     79            value="#{postAction.checkWritePermissionOnThread}"> 
    7880      <h:commandButton value="#{messages['command.add']}" 
    79         action="#{commentManagerActions.beginComment}" styleClass="button"/> 
     81        action="#{commentManagerActions.beginComment}" styleClass="button" rendered="#{canAnswer}"/> 
     82       </nxu:methodResult> 
    8083    </h:panelGroup> 
    8184