added an option to limit message downloads

This commit is contained in:
SJ
2015-07-28 21:56:50 +02:00
parent 19b9340868
commit 39468c3877
12 changed files with 39 additions and 1 deletions

View File

@ -80,6 +80,8 @@ class ControllerMessageView extends Controller {
$this->data['images'] = array();
$this->data['can_download'] = $this->model_audit_audit->can_download();
foreach($this->data['attachments'] as $a) {
if(preg_match("/image/", $a['type'])) {
$attachment = $this->model_search_message->get_attachment_by_id($a['id']);