Hi!

We have the problem when refreshing the AccessControlList.
When we change a permission in the database with for example

TurbineSecurity.grant(data.getUser(), group, 
TurbineSecurity.getRole("Administrator"));

the update is applied to the database, but not to the current session. After 
Logout/Login it works, but we want the new permissions to take effect 
immediately.
We tried the following code:

data.setACL(TurbineSecurity.getService().getACL(data.getUser()));

or

AccessControlList acl =  
(AccessControlList)data.getSession().getAttribute(AccessControlList.SESSION_KEY);
                
data.setACL(acl);

The first one effects the velocity templates, but not in our java classes. So we 
can use the new permissions from velocity but not from the classes (until 
relogin).

We are using turbine 2.1 with velocity.

We hope someone can help us.

regards, Karsten

--
berlin.de - meine stadt im netz. Jetzt eigene eMail-adresse @berlin.de sichern!
http://webmail.berlin.de


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to