communication return by admin page.

This commit is contained in:
BJRambo 2016-03-09 18:24:17 +09:00
parent 76adbde9ce
commit 686ea0cd04

View file

@ -809,7 +809,10 @@ class communicationController extends communication
$logged_info = Context::get('logged_info');
$oCommunicationModel = getModel('communication');
$config = $oCommunicationModel->getConfig();
if($obj->module == 'admin')
{
return new Object();
}
if($config->enable_message == 'N' && $config->enable_friend == 'N')
{
return new Object();