mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Disallow adding oneself as a friend
This commit is contained in:
parent
c54f3a61c4
commit
f79e1601ae
1 changed files with 1 additions and 1 deletions
|
|
@ -459,7 +459,7 @@ class communicationController extends communication
|
||||||
$logged_info = Context::get('logged_info');
|
$logged_info = Context::get('logged_info');
|
||||||
|
|
||||||
$target_srl = (int) trim(Context::get('target_srl'));
|
$target_srl = (int) trim(Context::get('target_srl'));
|
||||||
if(!$target_srl)
|
if(!$target_srl || $target_srl == $logged_info->member_srl)
|
||||||
{
|
{
|
||||||
return new Object(-1, 'msg_invalid_request');
|
return new Object(-1, 'msg_invalid_request');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue