mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-19 08:52:15 +09:00
Hide friend-related options and error messages if friend feature is disabled #2702
This commit is contained in:
parent
f9119c8ba3
commit
4090d6f5d7
3 changed files with 16 additions and 2 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue