[seam-commits] Seam SVN: r7850 - in trunk/examples/seamspace/resources: WEB-INF and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Apr 7 21:10:32 EDT 2008


Author: shane.bryzak at jboss.com
Date: 2008-04-07 21:10:32 -0400 (Mon, 07 Apr 2008)
New Revision: 7850

Modified:
   trunk/examples/seamspace/resources/META-INF/security-rules.drl
   trunk/examples/seamspace/resources/WEB-INF/pages.xml
Log:
fix user registration, broken security rule

Modified: trunk/examples/seamspace/resources/META-INF/security-rules.drl
===================================================================
--- trunk/examples/seamspace/resources/META-INF/security-rules.drl	2008-04-08 01:09:57 UTC (rev 7849)
+++ trunk/examples/seamspace/resources/META-INF/security-rules.drl	2008-04-08 01:10:32 UTC (rev 7850)
@@ -71,8 +71,8 @@
   activation-group "permissions"
 when
   mbr: Member()
-  acct: MemberAccount(member == mbr)
-  check: PermissionCheck(target == mbr, action == "createBlog", granted == false)
+  acct: MemberAccount(member.memberId == mbr.memberId)
+  check: PermissionCheck(target.memberId == mbr.memberId, action == "createBlog", granted == false)
 then
   check.grant();
 end

Modified: trunk/examples/seamspace/resources/WEB-INF/pages.xml
===================================================================
--- trunk/examples/seamspace/resources/WEB-INF/pages.xml	2008-04-08 01:09:57 UTC (rev 7849)
+++ trunk/examples/seamspace/resources/WEB-INF/pages.xml	2008-04-08 01:10:32 UTC (rev 7850)
@@ -40,7 +40,9 @@
     
     <page view-id="/register2.xhtml">
       <navigation from-action="#{register.uploadPicture}">
-        <redirect view-id="/profile.xhtml"/>
+        <redirect view-id="/profile.xhtml">
+          <param name="name" value="#{newMember.memberName}"/>
+        </redirect>
       </navigation>
     </page>    
     




More information about the seam-commits mailing list