Author: vmassol
Date: 2007-11-15 17:15:40 +0100 (Thu, 15 Nov 2007)
New Revision: 5889

Modified:
   xwiki-platform/web/trunk/standard/src/main/webapp/skins/albatross/macros.vm
Log:
XWIKI-1857: Panels from virtual wikis cannot be referenced in the list of Panels



Modified: 
xwiki-platform/web/trunk/standard/src/main/webapp/skins/albatross/macros.vm
===================================================================
--- xwiki-platform/web/trunk/standard/src/main/webapp/skins/albatross/macros.vm 
2007-11-15 15:18:27 UTC (rev 5888)
+++ xwiki-platform/web/trunk/standard/src/main/webapp/skins/albatross/macros.vm 
2007-11-15 16:15:40 UTC (rev 5889)
@@ -44,8 +44,12 @@
 ###
 #macro(displaypanel $name)
   #set ($pobj = "")
+  ## Since Velocity does not do any assignment if the RHS is null we need to 
reset the paneldoc
+  ## as otherwise the previously set panel will be displayed. getDocument() 
returns null if the
+  ## user doesn't have the right to view a document.
+  #set ($paneldoc = "")
   #set ($paneldoc = $xwiki.getDocument($name))
-  #if ($paneldoc && $paneldoc.fullName==$name)
+  #if ($paneldoc != "")
     #set ($pobj = $paneldoc.getObject("Panels.PanelClass"))
     #if (!$pobj)
       ## discarded

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to