From eb334317ca69c0b4323723d9d6a3e2223ccc0ed0 Mon Sep 17 00:00:00 2001 From: SJ Date: Mon, 4 Aug 2014 22:19:03 +0200 Subject: [PATCH] reference search fix --- webui/model/search/search.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webui/model/search/search.php b/webui/model/search/search.php index cb567826..094a6c7c 100644 --- a/webui/model/search/search.php +++ b/webui/model/search/search.php @@ -285,7 +285,9 @@ class ModelSearchSearch extends Model { $query = $this->db->query("SELECT id FROM " . TABLE_META . " WHERE message_id=? OR reference=? ORDER BY id DESC", array($reference, $reference)); foreach($query->rows as $q) { - array_push($ids, $q['id']); + if($this->check_your_permission_by_id($q['id'])) { + array_push($ids, $q['id']); + } } if(ENABLE_FOLDER_RESTRICTIONS == 1) {