[jboss-svn-commits] JBL Code SVN: r13607 - in labs/jbossforums/branches/forums101P26: forums/src/resources/portal-forums-war/views/topics and 1 other directory.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jul 18 13:29:59 EDT 2007


Author: unibrew
Date: 2007-07-18 13:29:59 -0400 (Wed, 18 Jul 2007)
New Revision: 13607

Modified:
   labs/jbossforums/branches/forums101P26/authz-jaae-plugin/src/resources/forums-authz-plugin.sar/META-INF/acl-mapping.xml
   labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_edit_body.xhtml
   labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_new_body.xhtml
Log:
[JBFORUMS-248] Security checks for choosing topicType while posting or editing a post.

Modified: labs/jbossforums/branches/forums101P26/authz-jaae-plugin/src/resources/forums-authz-plugin.sar/META-INF/acl-mapping.xml
===================================================================
--- labs/jbossforums/branches/forums101P26/authz-jaae-plugin/src/resources/forums-authz-plugin.sar/META-INF/acl-mapping.xml	2007-07-18 16:37:53 UTC (rev 13606)
+++ labs/jbossforums/branches/forums101P26/authz-jaae-plugin/src/resources/forums-authz-plugin.sar/META-INF/acl-mapping.xml	2007-07-18 17:29:59 UTC (rev 13607)
@@ -191,7 +191,10 @@
 			</resource>
 			<resource type="fragment">
 				<id>acl://reply</id>
-			</resource>
+			</resource>
+            <resource type="fragment" criteriaId="topicType://ui" >
+                <id>acl://topicType</id>
+            </resource>
 			<!-- action protection -->
 			<resource type="jsfAction">				
 				<class>org.jboss.portlet.forums.ui.action.NewTopic</class>

Modified: labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_edit_body.xhtml
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_edit_body.xhtml	2007-07-18 16:37:53 UTC (rev 13606)
+++ labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_edit_body.xhtml	2007-07-18 17:29:59 UTC (rev 13607)
@@ -556,6 +556,7 @@
 
     <!-- Add Options -->
     <c:if test="#{editPost.firstPost}">
+    <forums:isAllowed fragment="acl://topicType" contextData="#{editPost.forumId}">
     <tr class="PostViewUnderlineBoth">
         <td valign="top">
             <label class="forumformlabelbold">
@@ -577,6 +578,7 @@
             </h:selectOneRadio>
         </td>
     </tr>
+    </forums:isAllowed>
     </c:if>
     
     <!-- poll ui -->

Modified: labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_new_body.xhtml
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_new_body.xhtml	2007-07-18 16:37:53 UTC (rev 13606)
+++ labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/topics/posting_new_body.xhtml	2007-07-18 17:29:59 UTC (rev 13607)
@@ -553,7 +553,8 @@
         </td>
     </tr>
 
-    <!-- Add Options -->
+    <!-- Add Options -->
+    <forums:isAllowed fragment="acl://topicType" contextData="#{newTopic.forumId}">
     <tr class="PostViewUnderlineBoth">
         <td valign="top">
             <label class="forumformlabelbold">
@@ -575,6 +576,7 @@
             </h:selectOneRadio>
         </td>
     </tr>
+    </forums:isAllowed>
     
     <!-- poll ui -->
     <forums:isAllowed fragment="acl://managePoll">




More information about the jboss-svn-commits mailing list