diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 8e199650..ee889baa 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -371,12 +371,17 @@ class UserController extends BaseAuthedController { public function query() { $name = getReqVal('name', ''); + $filter = array( + 'name' => $name, + 'channel' => BC_CHANNEL + ); + if (SERVER_ENV == _ONLINE) { + $filter['channel'] = BC_CHANNEL; + } $userDb = SqlHelper::ormSelectOne ($this->_getMysql($name), 't_user', - array( - 'name' => $name - ) + $filter ); if (!$userDb) { $this->_rspErr(1, 'not found');