]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-14949, reverse changes to permission which can cause problems, merged from 1.9"
authordongsheng <dongsheng>
Wed, 14 Jan 2009 04:36:15 +0000 (04:36 +0000)
committerdongsheng <dongsheng>
Wed, 14 Jan 2009 04:36:15 +0000 (04:36 +0000)
mod/chat/gui_header_js/chatinput.php

index 35599bf9069d106f4a228ce11008b704a213dce6..cf6e2dc30dfb6806d2e6a8fd419a54efa78158f4 100644 (file)
@@ -63,7 +63,6 @@
     $meta = ob_get_clean();
     print_header('', '', '', 'input_chat_message', $meta, false);
 
-    if(has_capability('mod/chat:chatlog',$context)){
 ?>
     <form action="../empty.php" method="post" target="empty" id="inputForm"
           onsubmit="return empty_field_and_submit()" style="margin:0">
@@ -71,9 +70,6 @@
         <?php helpbutton('chatting', get_string('helpchatting', 'chat'), 'chat', true, false); ?><br />
         <input type="checkbox" id="auto" size="50" value="" checked='true' /><label for="auto"><?php echo get_string('autoscroll', 'chat');?></label>
     </form>
-<?php
-    }
-?>
 
     <form action="insert.php" method="post" target="empty" id="sendForm">
         <input type="hidden" name="chat_sid" value="<?php echo $chat_sid ?>" />