Hi, I'd like to test if a user has a defined role, in a template. In a class I used the jetspeedSecurity class (org.apache.jetspeed.services.JetspeedSecurity), and it works fine.
So i simply put this in tr.pr : tool.request.jsecurity=org.apache.jetspeed.services.JetspeedSecurity and tried to use it inside velocity... But this class is abstract (every method are static and call the "getservice"), so it seems velocity can't use it ? What's in my template : $jsecurity.hasRole($data.User.UserName,"admin") To see if the current user is an admin... It doesn't work. Any idea ? Aur�lien Pernoud -- To unsubscribe, e-mail: <mailto:jetspeed-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:jetspeed-user-help@;jakarta.apache.org>
