ajax.php
changeset 389 da3bb3e99323
parent 387 92664d2efab8
child 408 7ecbe721217c
--- a/ajax.php	Tue Jan 29 16:20:55 2008 -0500
+++ b/ajax.php	Tue Jan 29 16:21:52 2008 -0500
@@ -116,6 +116,7 @@
       }
       
       $auth_edit = ( $session->get_permissions('edit_page') && ( $session->get_permissions('even_when_protected') || !$paths->page_protected ) );
+      $auth_wysiwyg = ( $session->get_permissions('edit_wysiwyg') );
       
       $return = array(
           'mode' => 'editor',
@@ -124,6 +125,7 @@
           'auth_edit' => $auth_edit,
           'time' => time(),
           'require_captcha' => false,
+          'allow_wysiwyg' => $auth_wysiwyg
         );
       
       if ( $auth_edit && !$session->user_logged_in && getConfig('guest_edit_require_captcha') == '1' )