Author: shane.bryzak(a)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>
Show replies by date