--- a/ajax.php Fri Aug 21 20:41:38 2009 -0400
+++ b/ajax.php Tue Aug 25 01:43:40 2009 -0400
@@ -60,7 +60,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(
--- a/includes/clientside/static/editor.js Fri Aug 21 20:41:38 2009 -0400
+++ b/includes/clientside/static/editor.js Tue Aug 25 01:43:40 2009 -0400
@@ -441,7 +441,8 @@
form.appendChild(preview_anchor);
form.appendChild(preview_container);
form.appendChild(ta_wrapper);
- form.appendChild(tblholder);
+ if ( !readonly )
+ form.appendChild(tblholder);
form.innerHTML += '<div style="margin: 10px 0 0 0;">' + toolbar + '</div>';
edcon.appendChild(form);