[jboss-user] [JBoss Seam] - Problem with EntityHome.update and Drools

stefanommb do-not-reply at jboss.com
Tue Nov 20 11:58:49 EST 2007


Seam 2.0.0

I have:

@Restrict
  | @Name("userHome")
  | public class UserHome extends EntityHome<User> {
  | ...
  | }


security.drl:

rule rule1
  | when
  |   c: PermissionCheck(name == "userHome",
  |       action in ("persist", "update", "remove"))
  |   Role(name == "userupdate")
  | then
  |   c.grant();
  | end
  | 
  | rule rule2
  | when
  |   c: PermissionCheck(name == "userHome",
  |       action not in ("persist", "update", "remove"))
  |   Role(name == "userread")
  | then
  |   c.grant();
  | end

Result:
it's all ok for persist and remove; the update method throws an exception, but save the document anyway!

Can anyone help me?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4106482#4106482

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4106482



More information about the jboss-user mailing list