Reply buttons are disabled when course is not visible. Drafts are not editable when course is not visible. Prefix local_mail added to ajax.php functions