Why Box[List[Role]] instead of just List[Role]?

Is there a semantic difference between Empty and Full(Nil)?

--j

On Mon, Dec 29, 2008 at 7:33 AM, Marius <[email protected]> wrote:

>
> Hi,
>
> If you use so far the HTTP authentication support in Lift, you code
> would likely break. So far we could assign a single role to user by
> using userRoleRequestVar. This has been changed from:
>
> object userRole extends RequestVar[Box[Role]](Empty)
>
> to
>
> object userRoles extends RequestVar[Box[List[Role]]](Empty)
>
> In your authentication function you can say:
>
> userRoles(Full(AuthRole("useradmin", "siteadmin"))) or
> userRoles(Full(AuthRole("useradmin")))
>
>
> Br's,
> Marius
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to