Fixed: RenderMan::getPage() failing with access denial when fetching template and view_source results in deny
authorDan
Fri, 22 Feb 2008 12:46:51 -0500
changeset 284 d823e49e2e4e
parent 283 e133d321fce4
child 285 e72bf2c24875
Fixed: RenderMan::getPage() failing with access denial when fetching template and view_source results in deny
includes/render.php
--- a/includes/render.php	Fri Feb 01 22:31:57 2008 -0500
+++ b/includes/render.php	Fri Feb 22 12:46:51 2008 -0500
@@ -54,7 +54,7 @@
     if(!$perms->get_permissions('read'))
       return 'Access denied ('.$paths->nslist[$namespace].$page_id.')';
     
-    if($wiki == 0 || $render == false)
+    if($namespace != 'Template' && ($wiki == 0 || $render == false))
     {
       if(!$perms->get_permissions('view_source'))
       {