You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Thorsten Schilling <th...@ssb-multimedia.de> on 2004/10/12 16:19:26 UTC

(Solved) ACL Problem

I solved it by setting the ACL directly while login in:
data.setACL(TurbineSecurity.getACL(user));

Thorsten

Am Di, den 12.10.2004 schrieb Thorsten Schilling um 15:54:
> Hi,
> 
> another Question:
> I have a loginaction which sets the user in data. In my template i can
> ask for the username ($data.getUser().getName()) and display it. But if
> I try to ask for a permission, for example
> $data.getACL().hasPermission("admin_users") I get a
> java.lang.NullPointerException . 
> After a reload of the Page there's everything ok and i can access the
> ACL as usual.
> Is there any possibility to "update" the ACL directly in data after the
> Login (data.setUser(user))?
> 
> Regards
> Thorsten
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org