* adjust for editor and translate.

This commit is contained in:
wangyidong
2019-07-16 12:01:53 +08:00
parent 853fbbd18e
commit 34a0fa9d7f
10 changed files with 68 additions and 28 deletions
+3 -2
View File
@@ -15,8 +15,9 @@ class editor extends control
{
parent::__construct($moduleName, $methodName, $appName);
$remoteIP = helper::getRemoteIp();
if($remoteIP != '127.0.0.1') die($this->display('editor', 'deny'));
$this->active = helper::getRemoteIp() == '127.0.0.1';
$methodName = $this->app->getMethodName();
if(!$this->active and $methodName != 'index' and $methodName != 'extend') die($this->display('editor', 'deny'));
}
/**