Skip to content

Commit

Permalink
"MDL-14651, hide input box when user doesn't have chat:talk capability"
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsheng committed Dec 16, 2008
1 parent 4314c0b commit 8fcffd7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mod/chat/gui_ajax/index.php
Expand Up @@ -90,8 +90,14 @@
<h1><?php echo $str_title;?></h1>
</div>
<div id="chat_input">
<?php
if(has_capability('mod/chat:talk', $context)){
?>
<input type="text" id="input_msgbox" value="" size="48" />
<input type="button" id="btn_send" value="<?php echo $str_send;?>" />
<?php
}
?>
</div>
<div id="chat_user_list">
<ul id="listing">
Expand Down

0 comments on commit 8fcffd7

Please sign in to comment.