diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 7c4efcf9..4262f686 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -59,13 +59,11 @@ class BaseAuthedController extends BaseController { die(); } } - /*if (myself()->_getAccountId() == '6513_2006_DamQi5nhRX4iDiloUbbx5XN36syWTJvC') { - phpcommon\sendError(1003, 'session expiration'); - die(); - }*/ - if (phpcommon\cmpVersion(getReqVal('_version', ''), '0.2.0') > 0) { - phpcommon\sendError(1002, ''); - die(); + if (SERVER_ENV == _ONLINE) { + if (phpcommon\cmpVersion(getReqVal('_version', ''), '0.2.0') > 0) { + phpcommon\sendError(1002, ''); + die(); + } } }