ajax.php
changeset 1102 faef5e62e1e0
parent 1068 4bcefa85649c
child 1103 90225c988124
--- a/ajax.php	Wed Aug 19 01:28:47 2009 -0400
+++ b/ajax.php	Tue Aug 25 01:43:11 2009 -0400
@@ -61,7 +61,7 @@
         $src = '';
       }
       
-      $auth_edit = ( $session->get_permissions('edit_page') && ( $session->get_permissions('even_when_protected') || !$paths->page_protected ) );
+      $auth_edit = ( $session->get_permissions('edit_page') && ( $session->get_permissions('even_when_protected') || !$page->ns->page_protected ) );
       $auth_wysiwyg = ( $session->get_permissions('edit_wysiwyg') );
       
       $return = array(