No, nothing weird in the log at all. I am logging in as turbine, and
trying to check to see if the user has role XYZ.
Is there something I'm not doing to complete the login process?
data.getUser.getUserName() does return the name of the user, so I
ASSUME it's logging in a non-anonymous user.
Anything else for me to look at?
Here's what I've got:
try {
context.put("isroot",
new
Boolean(TurbineSecurity.getACL(data.getUser()).hasRole("turbine_root")));
context.put("joe", new String("User"));
} catch (Exception e) {
etc.
I tried this last night, and am getting a NullPointerException, so I
backed up and backed up until I determined that getACL() is returning
null.
Will Stranathan
--- Rafal Krzewski <[EMAIL PROTECTED]> wrote:
> Will Stranathan wrote:
>
> > TurbineSecurity.getACL(data.getUser()) is returning null, but not
> > throwing any exceptions. Am I doing something wrong?
>
> Obviously it shouldn't, provided that you logged in successfuly.
> in case of anonymous user UnknownEntityException should be thrown
> (accoutnExists returns false) unless you create an account with
> empty name (guest account).
>
> Are you getting any susupicious messages in the log?
>
> Rafal
>
> --
> Rafal Krzewski
> Senior Internet Developer
> mailto:[EMAIL PROTECTED]
> +48 22 8534830 http://e-point.pl
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]