Y값이 아닐경우 실행할 수 있도록.. (코드가 반영이 안되어서 다시 커밋.)

This commit is contained in:
qw5414 2016-01-15 20:06:05 +09:00
parent fff313eaee
commit a4559ee767

View file

@ -902,7 +902,7 @@ class documentController extends document
$oDocumentModel = getModel('document'); $oDocumentModel = getModel('document');
$config = $oDocumentModel->getDocumentConfig(); $config = $oDocumentModel->getDocumentConfig();
if($config->updatecount == 'Y') if($config->updatecount != 'Y')
{ {
// Pass if the author's IP address is as same as visitor's. // Pass if the author's IP address is as same as visitor's.
if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR'] && Context::getSessionStatus()) if($oDocument->get('ipaddress') == $_SERVER['REMOTE_ADDR'] && Context::getSessionStatus())