includes/render.php
changeset 457 d823e49e2e4e
parent 322 5f1cd51bf1be
child 458 c433348f3628
equal deleted inserted replaced
456:e133d321fce4 457:d823e49e2e4e
    52     }
    52     }
    53     
    53     
    54     if(!$perms->get_permissions('read'))
    54     if(!$perms->get_permissions('read'))
    55       return 'Access denied ('.$paths->nslist[$namespace].$page_id.')';
    55       return 'Access denied ('.$paths->nslist[$namespace].$page_id.')';
    56     
    56     
    57     if($wiki == 0 || $render == false)
    57     if($namespace != 'Template' && ($wiki == 0 || $render == false))
    58     {
    58     {
    59       if(!$perms->get_permissions('view_source'))
    59       if(!$perms->get_permissions('view_source'))
    60       {
    60       {
    61         return 'Access denied ('.$paths->nslist[$namespace].$page_id.')';
    61         return 'Access denied ('.$paths->nslist[$namespace].$page_id.')';
    62       }
    62       }