includes/render.php
changeset 800 9cdfe82c56cd
parent 798 ddfc1b554a08
child 801 eb8b23f11744
equal deleted inserted replaced
799:4629ad98ee88 800:9cdfe82c56cd
    47     if ( $page_id != $paths->page_id || $namespace != $paths->namespace )
    47     if ( $page_id != $paths->page_id || $namespace != $paths->namespace )
    48     {
    48     {
    49       unset($perms);
    49       unset($perms);
    50       unset($perms); // PHP <5.1.5 Zend bug
    50       unset($perms); // PHP <5.1.5 Zend bug
    51       $perms = $session->fetch_page_acl($page_id, $namespace);
    51       $perms = $session->fetch_page_acl($page_id, $namespace);
       
    52       if ( !$perms )
       
    53       {
       
    54         $session->init_permissions();
       
    55         $perms = $session->fetch_page_acl($page_id, $namespace);
       
    56       };
    52     }
    57     }
    53     
    58     
    54     if(!$perms->get_permissions('read'))
    59     if(!$perms->get_permissions('read'))
    55       return 'Access denied ('.$paths->nslist[$namespace].$page_id.')';
    60       return 'Access denied ('.$paths->nslist[$namespace].$page_id.')';
    56     
    61