[jboss-cvs] jboss-seam/examples/wiki/view/includes ...
Christian Bauer
christian at hibernate.org
Thu Apr 19 07:27:48 EDT 2007
User: cbauer
Date: 07/04/19 07:27:48
Modified: examples/wiki/view/includes commentsDisplay.xhtml
Log:
Permission check for comment deletion
Revision Changes Path
1.3 +1 -1 jboss-seam/examples/wiki/view/includes/commentsDisplay.xhtml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: commentsDisplay.xhtml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/includes/commentsDisplay.xhtml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- commentsDisplay.xhtml 19 Apr 2007 09:48:39 -0000 1.2
+++ commentsDisplay.xhtml 19 Apr 2007 11:27:48 -0000 1.3
@@ -41,7 +41,7 @@
</s:div>
<div align="right">
- <h:form rendered="#{s:hasPermission('User', 'isAdmin', currentUser)}">
+ <h:form rendered="#{s:hasPermission('Comment', 'delete', currentDocument)}">
<a:commandLink action="#{commentHome.remove(c.id)}" reRender="body"
styleClass="button"><span class="buttonLabel">Remove Comment</span></a:commandLink>
</h:form>
More information about the jboss-cvs-commits
mailing list