mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
issue 737 changed a vailied message when send message ownself
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10214 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
7ab93b2344
commit
e59df585fa
2 changed files with 19 additions and 2 deletions
|
|
@ -111,8 +111,13 @@
|
|||
if(!Context::get('is_logged')) return $this->stop('msg_not_logged');
|
||||
$logged_info = Context::get('logged_info');
|
||||
// get receipient's information
|
||||
|
||||
// check inalid request
|
||||
$receiver_srl = Context::get('receiver_srl');
|
||||
if(!$receiver_srl || $logged_info->member_srl == $receiver_srl) return $this->stop('msg_not_logged');
|
||||
if(!$receiver_srl) return $this->stop('msg_invalid_request');
|
||||
|
||||
// check receiver and sender are same
|
||||
if($logged_info->member_srl == $receiver_srl) return $this->stop('msg_cannot_send_to_yourself');
|
||||
// get message_srl of the original message if it is a reply
|
||||
$message_srl = Context::get('message_srl');
|
||||
if($message_srl) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue