Alright so I followed the procedures for installing drools and configuring the
security.drl properly based on examples. I'm pretty sure I have it setup
properly since it was complaining when I was experimenting with options in the
security.drl. In anycase I have this restriction to render a tab.
| <rich:tab switchType="page" immediate="true"
rendered="#{s:hasRole('super-user')}" label="Agency Admin" name="AgencyAdmin"
action="AgencyAdmin">
| <ui:include src="menu.xhtml">
| <ui:param name="projectName" value="#{projectName}"/>
| </ui:include>
| </rich:tab>
|
But yet this rule does not allow it to be rendered when I log in as ultra-user.
| rule UltraUserIsSuperUser
| salience 10
| no-loop
| when
| Role(name == "ultra-user")
| not Role(name == "super-user")
| then
| insert(new Role("super-user"));
| end
|
There are no exceptions or complaints from drools.
"[EMAIL PROTECTED]" wrote : Seam hasn't had a security-config.xml file since
version 1.1.1. If you wish to define a hierarchical relationship between
roles, you can write security rules for this. In fact, the seamspace example
does exactly this - here's an example:
|
| rule AdminIsAUser
| | salience 10
| | no-loop
| | when
| | Role(name == "admin")
| | not Role(name == "user")
| | then
| | insert(new Role("user"));
| | end
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090871#4090871
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090871
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user