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
i think this is a bug in seam drools principal filling.
principal should get populated with user login id
please verify this and let me know
The Principal that is asserted into the working memory is the currently authenticated user. You can see the code for this in RuleBasedPermissionResolver.synchronizeContext().