From 158c0ddd08cbe9e1ffcf0882efa4328afecf93d7 Mon Sep 17 00:00:00 2001 From: ngleader Date: Fri, 24 Feb 2012 02:59:32 +0000 Subject: [PATCH] Issue 954 block message list of member, when there is disabled coummunication addon git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10183 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/communication/communication.view.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/communication/communication.view.php b/modules/communication/communication.view.php index 221aa27e4..8451812ca 100644 --- a/modules/communication/communication.view.php +++ b/modules/communication/communication.view.php @@ -34,6 +34,11 @@ // Error appears if not logged-in if(!Context::get('is_logged')) return $this->stop('msg_not_logged'); $logged_info = Context::get('logged_info'); + if(!array_key_exists('dispCommunicationMessages', $logged_info->menu_list)) + { + return $this->stop('msg_invalid_request'); + } + // Set the variables $message_srl = Context::get('message_srl'); $message_type = Context::get('message_type');