Removed loadwithuser method

This commit is contained in:
Andrey
2013-08-14 18:23:19 +02:00
parent 1b8c2433b0
commit a5cdb65ed6
4 changed files with 32 additions and 28 deletions

View File

@@ -1517,8 +1517,10 @@ class API_V1_adapter extends API_V1_Abstract
{
$result = new API_V1_result($this->app, $request, $this);
$feed = $this->app['EM']->getRepository('Entities\Feed')->loadWithUser($this->app, $user, $publication_id);
$feed = $app['EM']->getRepository('Entities\Feed')->find($publication_id);
if (!$feed->isAccessible($app['authentication']->getUser(), $this->app)) {
return $result->set_datas(array())
}
$offset_start = (int) ($request->get('offset_start') ? : 0);
$per_page = (int) ($request->get('per_page') ? : 5);