If you have the user_id
column in your courses table, then try to use the following and share the result:
<?php if ($current_user['id'] == $message['Course']['user_id']): ?>
<td>
<?php echo $this->Html->link($message['Course']['course'], array('controller' => 'courses', 'action' => 'view', $message['Course']['id'])); ?>
</td>
<td>
<?php echo $message['Batch']['batch']; ?>
</td>
<td><?php echo $message['Message']['title']; ?> </td>
<td><?php echo $message['Message']['message']; ?> </td>
<td><?php echo $message['Message']['created']; ?> </td>