Hi,

have you tried something akin to

#if ($context.user == 'XWiki.YourUserName')
Test
#end

?

Guillaume

On 18/02/2008, [Ricardo Rodriguez] <webmaster@environmentalchange.net> wrote:

Hi all,

I need to control what sections of a document are shown on a per user basis.

I know how to do that per group, but I am failing when I try to evaluate
$xwiki.getUser() output.

For instance, this code write TEST whoever the logged user is:

#if ($xwiki.getUser().equals("com.xpn.xwiki.api.User@69be76"))
TEST
#end

Could you please, help me with this issue? Thanks!

Ricardo
--
View this message in context: http://www.nabble.com/controlling-display-on-a-per-user-basis-tp15545530p15545530.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users



--
http://wikibc.blogspot.com/