Hide friend-related options and error messages if friend feature is disabled #2702

This commit is contained in:
Kijin Sung 2026-04-26 14:55:57 +09:00
parent f9119c8ba3
commit 4090d6f5d7
3 changed files with 16 additions and 2 deletions

View file

@ -117,7 +117,14 @@ class CommunicationController extends communication
{
if(!$oCommunicationModel->isFriend($receiver_member_info->member_srl))
{
throw new Rhymix\Framework\Exception('msg_allow_message_to_friend');
if ($config->enable_friend === 'Y')
{
throw new Rhymix\Framework\Exception('msg_allow_message_to_friend');
}
else
{
throw new Rhymix\Framework\Exception('msg_disallow_message');
}
}
}
else if($receiver_member_info->allow_message == 'N')