Ajdin Brandic wrote:
> Is there an option (settings) to disable this (viewer=code) on a site?

First thing to keep in mind is that any user that can *edit* documents 
on your wiki will always be able to retrieve the source code of documents.

Now, if you want to disable the display of code to users, you should 
edit the following templates and add a rights check at the start:

code.vm, xml.vm, changes*.vm, editwiki.vm, editwysiwyg.vm, 
editwysiwygnew.vm, inline.vm, plaincode.vm


This snippet prevents guest access:

#if($context.user == 'XWiki.XWikiGuest')
   #stop
#end

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to