This content has been marked as final.
Show 3 replies
-
1. Re: how t acces authenticated user iin drools rule
visumagic Dec 30, 2008 12:02 AM (in response to visumagic)my rule code is
rule UserChitchatCheck activation-group "permissions" when p: Principal(n:name) Chitchat(m: message) check: PermissionCheck(action == "cdelete") // Role(name == "user") then System.out.println("cdelete:"+p+n); check.grant(); end
-
2. Re: how t acces authenticated user iin drools rule
visumagic Dec 30, 2008 12:21 AM (in response to visumagic)i think this is a bug in seam drools principal filling.
principal should get populated with user login idplease verify this and let me know
thanks
raghu -
3. Re: how t acces authenticated user iin drools rule
shane.bryzak Jan 5, 2009 6:54 AM (in response to visumagic)The Principal that is asserted into the working memory is the currently authenticated user. You can see the code for this in RuleBasedPermissionResolver.synchronizeContext().