Re: [xwiki-users] getDocumentAsAuthor doesn't work in attempt to read a page from velocity

2013-01-04 Thread Haru
Thanks for help, Caleb, it works now :-) Пятница, 4 января 2013, 13:48 -05:00 от Caleb James DeLisle : >Hi Dmitry, > >The getDocumentAsAuthor() call should work as expected. >Make sure to use saveDocumentAsAuthor() when saving as well. > >Thanks, >Caleb > > >On 01/04/2013 11:00 AM, Haru wrote:

Re: [xwiki-users] getDocumentAsAuthor doesn't work in attempt to read a page from velocity

2013-01-04 Thread Caleb James DeLisle
Hi Dmitry, The getDocumentAsAuthor() call should work as expected. Make sure to use saveDocumentAsAuthor() when saving as well. Thanks, Caleb On 01/04/2013 11:00 AM, Haru wrote: > Hi! > > I'm trying to develop a simple script for followng scenario: > - Registered User receives an "access code

[xwiki-users] getDocumentAsAuthor doesn't work in attempt to read a page from velocity

2013-01-04 Thread Haru
Hi! I'm trying to develop a simple script for followng scenario: - Registered User receives an "access code" to the restricted Space - User fills in "access code" and access is granted to him. Following test code is used for tests now (no codes involved yet):   {{velocity}} #set ($mydoc = $xwik