From: Patrick B. <pat...@jo...> - 2009-12-30 21:11:49
|
Hi, While using system:as-user() I've noticed that xmldb:get-current-user() will return the emulated user in the let statements and will return the currently logged in user in the return statement. Example: system:as-user($admin-username, $admin-password, let $username := xmldb:get-current-user() return <stuff> <let-username>$username</let-username> <return-username>xmldb:get-current-user()</return-username> </stuff> ) will give us: <stuff> <let-username>admin</let-username> <return-username>Patrick</return-username> </stuff> I'm not sure if this is intentional, but it seemed a bit counter intuitive to me, so I thought I'd make a note of it. Cheers, -- Patrick Bosek Jorsek Software Cell (585) 820 9634 Office (585) 239 6060 Jorsek.com |