mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
Removed loadwithuser method
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user