- ViewMessage: checks if the receiver is an employee or not. If an

employee then hides the reply link
- Added isEmployee method to MessageToken_model
This commit is contained in:
Paolo
2017-03-30 17:44:43 +02:00
parent d08de4b22b
commit 559b1b4cdf
3 changed files with 63 additions and 7 deletions
+12 -5
View File
@@ -37,11 +37,18 @@
<?php echo $message->body; ?>
</td>
</tr>
<tr>
<td colspan="3" align="center" style="background-color:#dddddd; padding:5px;">
<a href="<?php echo $href; ?>">Reply</a>
</td>
</tr>
<?php
if ($isEmployee === false)
{
?>
<tr>
<td colspan="3" align="center" style="background-color:#dddddd; padding:5px;">
<a href="<?php echo $href; ?>">Reply</a>
</td>
</tr>
<?php
}
?>
</table>
</center>