That work> A hah!  I had forgotten that I'd done this.  Try the
following:
>
> myUser.runSafe {
>   myUser.id(55L)
>
> }
>

Now it works and thanks for the explanation!!

br,
- Erik


> Mapper supports read and write access control on a field by field bases.
>  You can put in complex logic (e.g., a taxpayer ID field can only be read by
> the person who owns the record) into the code and the logic will be enforced
> unless you are running in a "safe" code block.  This makes code reviews a
> lot easier... you check the logic for the access control and you check for
> places that the code is in "safe mode" (should be almost nowhere... and
> should be marked with big comments) and that's the code review rather than
> every point in the code where the field in question is being accessed.  
> Seehttp://blog.lostlake.org/index.php?/archives/19-Keeping-the-meaning-w...
>
> Thanks,
>
> David
>
>
>
>
>
> > Should I run my test in different run.mode? test?
>
> > br,
> > - Erik
>
> > > Please give that a try.
>
> > > Thanks,
>
> > > David
>
> > > > Thanks beforehand,
>
> > > > - Erik
>
> > > --
> > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > Follow me:http://twitter.com/dpp
> > > Git some:http://github.com/dpp
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
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