Diogo Saad wrote:
>
> I'm doing a manager so that I can change my Users/Roles/Permissions via web.
> I'm trying to remove a permission....
> The problem is that when I call TurbineSecurity.removerPermission(permname)
> it only removes the named permission from the TURBINE_PERMISSION table , leaving the
>perm in TURBINE_ROLE_PERMISSION table....
>
> What's wrong ?? I couldn't find in TurbineSecurity Fascade a method that does it
>right......... Do I have to delete by hand (I mean .....using
>TURBINE_ROLE_PERMISSION(peer))???
>
> Diogo
>
> Permission perm =
>TurbineSecurity.getPermission(data.getParameters().get("realname"));
> TurbineSecurity.removePermission(perm);
Look at the jakarta-turbine-flux cvs module for examples on how to use
the security system.
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
http://jakarta.apache.org/velocity
http://jakarta.apache.org/turbine
http://jakarta.apache.org/commons
http://tambora.zenplex.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]