Allow admin to report (declare) even if it's the same IP

This commit is contained in:
Kijin Sung 2021-02-10 15:56:47 +09:00
parent e8e6546067
commit 6b956d2e5b
2 changed files with 2 additions and 2 deletions

View file

@ -1690,7 +1690,7 @@ class documentController extends document
$oDocument = DocumentModel::getDocument($document_srl, false, false);
// Pass if the author's IP address is as same as visitor's.
if($oDocument->get('ipaddress') == \RX_CLIENT_IP)
if($oDocument->get('ipaddress') == \RX_CLIENT_IP && !$this->user->isAdmin())
{
$_SESSION['declared_document'][$document_srl] = false;
return new BaseObject(-1, 'failed_declared');