equal
deleted
inserted
replaced
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 |