I have function in my controller actionUsers($params)
Code: Select all
protected function actionUsers($params) {
$response['success'] = true;
$usr = array(2,4,6,10);
$store = new GO_Base_Data_Store($this->getStoreColumnModel());
$this->formatColumns($store->getColumnModel());
$storeParams = $store->getDefaultParams($params)->criteria(GO_Base_Db_FindCriteria::newInstance()->addInCondition('id',$usr))->mergeWith($this->getStoreParams($params));
$store->setStatement(call_user_func(array('GO_Base_Model_User','model'))->find($storeParams));
$response = array_merge($response, $store->getData());
return $response;
}
When i call this function and user does not have premission to addressbook, a have error end ajax request is canceled, but when i add premission to addresbook for user everything is ok.