On Feb 2, 2010, at 8:13 PM, vmassol (SVN) wrote:
Author: vmassol
Date: 2010-02-02 20:13:03 +0100 (Tue, 02 Feb 2010)
New Revision: 26619
Modified:
platform/web/trunk/standard/src/main/webapp/templates/javascript.vm
Log:
XWIKI-4841: Section editing links should not appear on pages for which users don't
have edit rights
* More improvement (this time from Marius Florea!)
oops that was from Sergiu Dumitriu... sorry :)
-Vincent
Modified: platform/web/trunk/standard/src/main/webapp/templates/javascript.vm
===================================================================
--- platform/web/trunk/standard/src/main/webapp/templates/javascript.vm 2010-02-02
18:58:01 UTC (rev 26618)
+++ platform/web/trunk/standard/src/main/webapp/templates/javascript.vm 2010-02-02
19:13:03 UTC (rev 26619)
@@ -36,7 +36,7 @@
XWiki.docisnew = $!doc.isNew();
XWiki.docsyntax = "$!doc.getSyntaxId()";
XWiki.blacklistedSpaces = [ #foreach($space in $blacklistedSpaces)#if($velocityCount >
1),#end"$space"#end ];
-XWiki.hasEdit = #if($hasEdit) true #else false #end;
+XWiki.hasEdit = $hasEdit;
window.docviewurl = "${doc.getURL('view')}";
window.docediturl = "${doc.getURL('edit')}";
window.docsaveurl = "${doc.getURL('save')}";