Zidarics Zoltan wrote:
Hi All,

I would like to load a screen which is secured after the user logined, but user hasn�t acl. When I stop request, and reload it, it works well. What can I do on login action, to force reading acl?
Normally user redirected to index.vm after login, which is normalScreen descendant, so it works well. My admin screen is SecureScreen descendant, so it needs acl.


I was try my own Login screen:

                        if (user.getConfirmed().compareTo(User.CONFIRM_DATA) == 
0) {
                                data.setUser(user);
                                user.setHasLoggedIn(Boolean.TRUE);
                                user.updateLastLogin();
                                data.save();
                                AccessControlList acl = data.getACL();
                   acl is null at this point.

Hi, I had a similar problem and fixed it by adding

AccessControlList acl = TurbineSecurity.getACL(user);
data.setACL(acl);

in the login method.
Greetings


-- Thomas Schmidt ([EMAIL PROTECTED]) SUSE Linux Products GmbH :: Research & Development :: Internal Tools "Wir sind nicht in Vietnam, sondern beim Bowling. Hier gibt es Regeln." John Goodman in Big Lebowsky

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



Reply via email to